Web/API/CSSCounterStyleRule

From Get docs

The CSSCounterStyleRule interface represents an @counter-style at-rule.

Inheritance

This interface inherits from the following parent interfaces:

Properties

This interface also inherits properties from its parent CSSRule.

CSSCounterStyleRule.name
Is a DOMString object that contains the serialization of the <counter-style-name> defined for the associated rule.
CSSCounterStyleRule.system
Is a DOMString object that contains the serialization of the system descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.symbols
Is a DOMString object that contains the serialization of the symbols descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.additiveSymbols
Is a DOMString object that contains the serialization of the additive-symbols descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.negative
Is a DOMString object that contains the serialization of the negative descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.prefix
Is a DOMString object that contains the serialization of the prefix descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.suffix
Is a DOMString object that contains the serialization of the suffix descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.range
Is a DOMString object that contains the serialization of the range descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.pad
Is a DOMString object that contains the serialization of the pad descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.speakAs
Is a DOMString object that contains the serialization of the speak-as descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
CSSCounterStyleRule.fallback
Is a DOMString object that contains the serialization of the fallback descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.

Methods

This interface doesn't implement any specific method but inherits methods from its parent CSSRule.

Specifications

Specification Status Comment
CSS Counter Styles Level 3The definition of 'CSSCounterStyleRule' in that specification. Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
CSSCounterStyleRule Chrome

No support No

Edge

No support No

Firefox

Full support 33

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 33

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

Legend

Full support  
Full support
No support  
No support


See also