baseline-shift
Newly availableSince 202696% of users
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.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2026. Widely available around September 2028.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0- Inherited
- No
- Applies to
- inline-level boxes and SVG text content elements
- Animation type
- byComputedValueType
Quick example
text.exponent {
/* Shifts the text upward for mathematical powers */
baseline-shift: super;
font-size: 0.7em;
}Values
subsuperbaselinebaseline-shift browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage96%of people can use this4% use a browser without it.
Browsers
1+
149+
4+
79+Mobile
18+Android
149+Android
3.2+iOS