CSS counter-reset Property Reference
The CSS counter-reset property is a standard property in CSS Lists and Counters. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
counter-reset overview
The CSS counter-reset property is a standard property in CSS Lists and Counters. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | [ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none |
| Initial value | none |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | byComputedValueType |
| Media | all |
| Specification group | CSS Lists and Counters |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set counter-reset. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
counter-reset: initial;
}
.inherit-example {
counter-reset: inherit;
}
@supports (counter-reset: initial) {
.supported {
counter-reset: initial;
}
}