baseline-shift
Used in SVG to move text vertically relative to its baseline. It's the primary way to create subscripts or superscripts within SVG text elements without changing font sizes.
Usage example
text.exponent {
/* Shifts the text upward for mathematical powers */
baseline-shift: super;
font-size: 0.7em;
} Initial value
0
Inherited
No
Applies to
inlineLevelBoxesAndSVGTextContentElements
Animation type
byComputedValueType
Values
subsuperbaseline baseline-shift Browser Support
Widely available Since 2015 94% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
Safe to use without fallbacks.
1+
4+
79+