math-depth
Newly availableSince 202690% of users
Controls how MathML formulas are scaled when nested. Increasing the depth usually makes the text smaller, similar to how subscripts or superscripts work.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2026. Widely available around September 2028.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0- Inherited
- Yes
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
math {
/* Manually increases the nesting depth of a formula */
math-depth: add(1);
}Values
auto-addaddmath-depth browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage90%of people can use this10% use a browser without it.
Browsers
109+
117+
26.4+
109+Mobile
109+Android
117+Android
26.4+iOS