coderef

font-optical-sizingBaseline · Widely available

The font-optical-sizing CSS property sets whether text rendering is optimized for viewing at different sizes.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 24, 2020. Widely available since Sep 24, 2022.

Browser support

DesktopChrome
1–78Not supported
79+Supportedsince Dec 10, 2019
Current: 155
Edge
12–16Not supported
17+Supportedsince Apr 30, 2018
Current: 154
Firefox
1–61Not supported
62+Supportedsince Sep 5, 2018
Current: 157
Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27
MobileChrome Android
18–78Not supported
79+Supportedsince Dec 17, 2019
Current: 155
Firefox Android
4–61Not supported
62+Supportedsince Sep 5, 2018
Current: 157
Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: font-optical-sizing.

Feature detection

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

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

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
font-optical-sizing79176213.1796213.4
font-optical-sizing.auto79176213.1796213.4
font-optical-sizing.none79176213.1796213.4