ComputedStyle

Overview

ComputedStyle is a class in Aspose.Html FOSS for Python.

Immutable layout-facing snapshot of an element’s resolved style.

This class provides 2 methods for working with ComputedStyle objects in Python programs. Available methods include: __init__, get. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package. Properties: epoch.

Properties

NameTypeAccessDescription
epochintReadThe Document._style_epoch this snapshot was produced at.

Methods

SignatureDescription
__init__(decl: "ComputedStyleDeclaration", epoch: int)Calls init(decl, epoch) on this ComputedStyle instance.
get(name: str)strReturn the resolved value of name, or '' when absent.

See Also