{{APIRef}}
The CSSCounterStyleRule
{{glossary("interface")}} represents an {{cssxref("@counter-style")}} at-rule.
Inheritance
This interface inherits from the following parent interfaces:
{{InheritanceDiagram}}
Properties
This interface also inherits properties from its parent {{domxref("CSSRule")}}.
- {{domxref("CSSCounterStyleRule.name")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("<counter-style-name>")}} defined for the associated rule.
- {{domxref("CSSCounterStyleRule.system")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/system", "system")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.symbols")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/symbols", "symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.additiveSymbols")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/additive-symbols", "additive-symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.negative")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/negative", "negative")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.prefix")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/prefix", "prefix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.suffix")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/suffix", "suffix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.range")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/range", "range")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.pad")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/pad", "pad")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.speakAs")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/speak-as", "speak-as")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
- {{domxref("CSSCounterStyleRule.fallback")}}
- Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/fallback", "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 {{domxref("CSSRule")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName("CSS3 Counter Styles", "#the-csscounterstylerule-interface", "CSSCounterStyleRule")}} | {{Spec2("CSS3 Counter Styles")}} | Initial definition |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatNo}} | {{CompatGeckoDesktop("33.0")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatGeckoMobile("33.0")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
See also
- {{cssxref("@counter-style")}}