Widely availableSupported across all major browsers. Safe to use in production.

Overview

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

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
79
17
62
13.1
79
13.4
auto
79
17
62
13.1
79
13.4
none
79
17
62
13.1
79
13.4
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
body {
  font-optical-sizing: auto;
}
.no-optical {
  font-optical-sizing: none;
}

Live demo

Auto(enabled)

CSS Auto(enabled) demo.

PreviewFullscreen

None(disabled)

CSS None(disabled) demo.

PreviewFullscreen

Size by comparison

CSS Size by comparison demo.

PreviewFullscreen

Use cases

  • Using font-optical-sizing

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

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.

Powered by web-features