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
| Name | Type | Access | Description |
|---|---|---|---|
length | int | Read | Number of rules in the live collection. |
Methods
| Signature | Description |
|---|---|
__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). |