math-shift

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

It is documented as part of the MathML specification.

/* Usage Example */
math {
  /* Keeps superscripts closer to the baseline for tight spaces */
  math-shift: compact;
}

/* Syntax */
math-shift: normal;
math-shift: compact;

/* Global values */
math-shift: inherit;
math-shift: initial;
math-shift: revert;
math-shift: revert-layer;
math-shift: unset;
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.

109+
146+
26.2+
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