CSS line-height-step Property Reference
The CSS line-height-step property is a experimental property in CSS Rhythmic Sizing. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
line-height-step overview
The CSS line-height-step property is a experimental property in CSS Rhythmic Sizing. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <length> |
| Initial value | 0 |
| Applies to | blockContainers |
| Inherited | Yes |
| Percentages | no |
| Computed value | absoluteLength |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | CSS Rhythmic Sizing |
| Status | Experimental |
Practical examples
These declarations demonstrate valid ways to set line-height-step. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
line-height-step: initial;
}
.inherit-example {
line-height-step: inherit;
}
@supports (line-height-step: initial) {
.supported {
line-height-step: initial;
}
}