math-shift

A property for MathML that determines whether superscripts should be shifted upwards more aggressively ('normal') or kept closer to the baseline ('compact').

math {
  /* Keeps superscripts closer to the baseline for tight spaces */
  math-shift: compact;
}
Initial value
normal
Inherited
Yes
Applies to
allElements
Animation type
notAnimatable

Values

normalcompact
Widely available Since 2023 83% global usage

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

Safe to use without fallbacks.

109+
146+
26.2+
109+
ESC