CSSCounterStyleRule
The CSSCounterStyleRule interface represents an @counter-style at-rule.
Properties
This interface also inherits properties from its parent CSSRule.
CSSCounterStyleRule.name-
Is a
CSSOMStringobject that contains the serialization of the<custom-ident>defined as thenamefor the associated rule. CSSCounterStyleRule.system-
Is a
CSSOMStringobject that contains the serialization of thesystemdescriptor 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
CSSOMStringobject that contains the serialization of thesymbolsdescriptor 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
CSSOMStringobject that contains the serialization of theadditive-symbolsdescriptor 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
CSSOMStringobject that contains the serialization of thenegativedescriptor 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
CSSOMStringobject that contains the serialization of theprefixdescriptor 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
CSSOMStringobject that contains the serialization of thesuffixdescriptor 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
CSSOMStringobject that contains the serialization of therangedescriptor 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
CSSOMStringobject that contains the serialization of thepaddescriptor 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
CSSOMStringobject that contains the serialization of thespeak-asdescriptor 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
CSSOMStringobject that contains the serialization of thefallbackdescriptor 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
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CSSCounterStyleRule |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
additiveSymbols |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
fallback |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
name |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
negative |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
pad |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
prefix |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
range |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
speakAs |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
suffix |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
symbols |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
system |
91 |
91 |
33 |
No |
77 |
No |
91 |
91 |
33 |
64 |
No |
No |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule