CSS dominant-baseline Property Reference
The CSS dominant-baseline property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
dominant-baseline overview
The CSS dominant-baseline property is a standard property in CSS Inline. 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 | auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top |
| Initial value | auto |
| Applies to | blockContainersFlexContainersGridContainersInlineBoxesTableRowsSVGTextContentElements |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | all |
| Specification group | CSS Inline |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set dominant-baseline. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
dominant-baseline: initial;
}
.inherit-example {
dominant-baseline: inherit;
}
@supports (dominant-baseline: initial) {
.supported {
dominant-baseline: initial;
}
}