counter-setBaseline · Widely available
The counter-set CSS property creates (and optionally sets a value for) a counter, the numbers for a series of headings or ordered list items.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Dec 11, 2023. Widely available since Jun 11, 2026.
Browser support
DesktopChrome
1–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155Edge
12–84Not supported
85+Supportedsince Aug 27, 2020
Current: 154Firefox
1–67Not supported
68+Supportedsince Jul 9, 2019
Current: 157Safari
1–17.1Not supported
17.2+Supportedsince Dec 11, 2023
Current: 27MobileChrome Android
18–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155Firefox Android
4–67Not supported
68+Supportedsince Jul 9, 2019
Current: 157Safari iOS
1–17.1Not supported
17.2+Supportedsince Dec 11, 2023
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: counter-set.
Feature detection
CSS · check before using
@supports (counter-set: initial) {
/* styles that rely on counter-set */
}
/* or in JavaScript */
if (CSS.supports("counter-set", "initial")) {
// use it
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (3). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| counter-set | 85 | 85 | 68 | 17.2 | 85 | 68 | 17.2 |
| counter-set.list-item | 85 | 85 | 68 | 17.2 | 85 | 68 | 17.2 |
| counter-set.none | 85 | 85 | 68 | 17.2 | 85 | 68 | 17.2 |