coderef

font-variant-positionLimited availability

The font-variant-position CSS property sets whether to use alternate glyphs for subscript and superscript text.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
1–33Not supported
34+Supportedsince Dec 1, 2014
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
4–33Not supported
34+Supportedsince Dec 1, 2014
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Chrome, Edge, Safari, Chrome Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: font-variant-position.

Feature detection

CSS · check before using
@supports (font-variant-position: initial) {
  /* styles that rely on font-variant-position */
}

/* or in JavaScript */
if (CSS.supports("font-variant-position", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (4). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
font-variant-position117117349.1117349.3
font-variant-position.normal117117349.1117349.3
font-variant-position.sub✕✕34✕✕34✕
font-variant-position.super✕✕34✕✕34✕