math-depth

Controls how MathML formulas are scaled when nested. Increasing the depth usually makes the text smaller, similar to how subscripts or superscripts work.

It is documented as part of the MathML specification.

/* Usage Example */
math {
  /* Manually increases the nesting depth of a formula */
  math-depth: add(1);
}

/* Syntax */
math-depth: auto-add;
math-depth: add;

/* Global values */
math-depth: inherit;
math-depth: initial;
math-depth: revert;
math-depth: revert-layer;
math-depth: unset;
Widely available Since 2023 79% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.

109+
117+
26.4+
109+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC