CSSCounterStyleRule
Overview
CSSCounterStyleRule is a class in Aspose.Html FOSS for Python.
Inherits from: CSSRule.
A @counter-style rule (CSS Counter Styles Level 3 §3, CSSOM §5.4 type 11).
This class provides 1 method for working with CSSCounterStyleRule objects in Python programs.
Available methods include: __init__.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Properties: CHARSET_RULE, COUNTER_STYLE_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAMES_RULE, and 16 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
css_type | int | Read | Rule type constant — always :attr:CSSRule.COUNTER_STYLE_RULE (11). |
type | int | Read | Legacy alias for :attr:css_type (CSSOM §6.6 type property). |
name | str | Read | The counter style name from the @counter-style declaration. |
style | str | Read | The rule body descriptor text (raw string, not cascade-participating). |
css_text | str | Read | Reconstructed @counter-style declaration string. |
UNKNOWN_RULE | int | Read | Gets the unknown rule. |
STYLE_RULE | int | Read | Gets the style rule. |
CHARSET_RULE | int | Read | Gets the charset rule. |
IMPORT_RULE | int | Read | Gets the import rule. |
MEDIA_RULE | int | Read | Gets the media rule. |
FONT_FACE_RULE | int | Read | Gets the font face rule. |
PAGE_RULE | int | Read | Gets the page rule. |
KEYFRAMES_RULE | int | Read | Gets the keyframes rule. |
KEYFRAME_RULE | int | Read | Gets the keyframe rule. |
NAMESPACE_RULE | int | Read | Gets the namespace rule. |
COUNTER_STYLE_RULE | int | Read | Gets the counter style rule. |
SUPPORTS_RULE | int | Read | Gets the supports rule. |
FONT_FEATURE_VALUES_RULE | int | Read | Gets the font feature values rule. |
LAYER_BLOCK_RULE | int | Read | Gets the layer block rule. |
LAYER_STATEMENT_RULE | int | Read | Gets the layer statement rule. |
parent_style_sheet | CSSStyleSheet | None | Read | Gets the parent style sheet. |
parent_rule | CSSRule | None | Read | Gets the parent rule. |
Methods
| Signature | Description |
|---|---|
__init__(name: str, body_text: str) | Calls init(name, body_text) on this CSSCounterStyleRule instance. |