CSSRuleList

Overview

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

Ordered, live CSS rule collection.

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

Properties

NameTypeAccessDescription
lengthintReadNumber of rules in the live collection.

Methods

SignatureDescription
__init__(provider: Callable[[], list[CSSRule]])Calls init(provider) on this CSSRuleList instance.
item(index: int)"CSSRule | None"Return the rule at index, or None if out of range (CSSOM §6.5).

See Also