CSS math-depth Property Reference
The CSS math-depth property is a standard property in MathML. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
math-depth overview
The CSS math-depth property is a standard property in MathML. 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-add | add(<integer>) | <integer> |
| Initial value | 0 |
| Applies to | allElements |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | notAnimatable |
| Media | visual |
| Specification group | MathML |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set math-depth. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
math-depth: initial;
}
.inherit-example {
math-depth: inherit;
}
@supports (math-depth: initial) {
.supported {
math-depth: initial;
}
}