CSSCounterStyleRule

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

CSSRule CSSCounterStyleRule

Instance properties

This interface also inherits properties from its parent CSSRule.

CSSCounterStyleRule.name

A string object that contains the serialization of the <custom-ident> defined as the name for the associated rule.

CSSCounterStyleRule.system

A string 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

A string 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

A string 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

A string 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

A string 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

A string 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

A string 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

A string 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

A string 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

A string 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.

Instance methods

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

Specifications

Specification
CSS Counter Styles Level 3
# the-csscounterstylerule-interface

Browser compatibility

BCD tables only load in the browser

See also