property-value

Font size/math — CSS reference

Uses the inherited font size and mathematical depth changes to determine script size. Actual scale depends on math font metrics or fallback rules. This example explicitly selects math sizing on the superscript.

Formal Syntax & Structure

css syntaxcss
font-size: math;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>font-size/math</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}#t{font-size:math}</style><body><math id="m"><msup><mi id="b">x</mi><mn id="t">2</mn></msup></math></body></html>
CSS Reference