dom / latest / css_counter_styles.html /

CSS Counter Styles

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The CSS Counter Styles module allows to define custom counter styles, which can be used for CSS list-marker and generated-content counters.

Interfaces

CSSCounterStyleRule

Represents an @counter-style rule.

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
CSS_Counter_Styles
91
91
33
No
77
No
See bug 167645.
91
91
33
64
No
See bug 167645.
16.0
additiveSymbols
91
91
33
No
77
No
91
91
33
64
No
16.0
fallback
91
91
33
No
77
No
91
91
33
64
No
16.0
name
91
91
33
No
77
No
91
91
33
64
No
16.0
negative
91
91
33
No
77
No
91
91
33
64
No
16.0
pad
91
91
33
No
77
No
91
91
33
64
No
16.0
prefix
91
91
33
No
77
No
91
91
33
64
No
16.0
range
91
91
33
No
77
No
91
91
33
64
No
16.0
speakAs
91
91
33
No
77
No
91
91
33
64
No
16.0
suffix
91
91
33
No
77
No
91
91
33
64
No
16.0
symbols
91
91
33
No
77
No
91
91
33
64
No
16.0
system
91
91
33
No
77
No
91
91
33
64
No
16.0

CSSCounterStyleRule interface

BCD tables only load in the browser

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/CSS_Counter_Styles