property-value
Math depth/auto add — CSS reference
Increments the inherited mathematical depth when inherited math-style is compact; otherwise retains inherited depth. This allows fraction content to become smaller in compact context.
Formal Syntax & Structure
css syntaxcss
math-depth: auto-add;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>math-depth/auto-add</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}#m{math-style:compact}#t{math-depth:auto-add}</style><body><math id="m"><msup><mi id="b">x</mi><mn id="t">2</mn></msup></math></body></html>