This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The font-display descriptor for the @font-face at-rule determines how a font face is displayed based on whether and when it is downloaded and ready to use.
/* Keyword values */ font-display: auto; font-display: block; font-display: swap; font-display: fallback; font-display: optional;
autoThe font display strategy is defined by the user agent.
blockGives the font face a short block period and an infinite swap period.
swapGives the font face an extremely small block period and an infinite swap period.
fallbackGives the font face an extremely small block period and a short swap period.
optionalGives the font face an extremely small block period and no swap period.
Note: In Firefox, the preferences gfx.downloadable_fonts.fallback_delay and gfx.downloadable_fonts.fallback_delay_short provide the duration of the "short" and "extremely small" periods, respectively.
The font display timeline is based on a timer that begins the moment the user agent attempts to use a given downloaded font face. The timeline is divided into the three periods below which dictate the rendering behavior of any elements using the font face:
| Related at-rule | @font-face |
|---|---|
| Initial value | auto |
| Computed value | as specified |
font-display =
auto |
block |
swap |
fallback |
optional
@font-face {
font-family: ExampleFont;
src:
url("/path/to/fonts/example-font.woff") format("woff"),
url("/path/to/fonts/example-font.eot") format("embedded-opentype");
font-weight: 400;
font-style: normal;
font-display: fallback;
}
| Specification |
|---|
| CSS Fonts Module Level 4> # font-display-desc> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
font-display |
60 | 79 | 58 | 47 | 11.1 | 60 | 58 | 44 | 11.3 | 11.0 | 60 | 11.3 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display