font-size-adjustBaseline · Newly available
The font-size-adjust CSS property preserves apparent text size, regardless of the font used, by scaling fonts to the same size with respect to a specific metric, such as x-height. This can help make fallback fonts look the same size.
Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Jul 25, 2024.
Browser support
DesktopChrome
1–126Not supported
127+Supportedsince Jul 23, 2024
Current: 155Edge
12–126Not supported
127+Supportedsince Jul 25, 2024
Current: 154Firefox
1–117Not supported
118+Supportedsince Sep 26, 2023
Current: 157Safari
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27MobileChrome Android
18–126Not supported
127+Supportedsince Jul 23, 2024
Current: 155Firefox Android
4–117Not supported
118+Supportedsince Sep 26, 2023
Current: 157Safari iOS
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27How to use
Every current browser supports this, but it only became Baseline on Jul 25, 2024. Use it as a progressive enhancement, or keep a fallback if you support older devices.
Example
Full syntax and examples are on MDN: size-adjust.
Feature detection
CSS · check before using
@supports (font-size-adjust: initial) {
/* styles that rely on font-size-adjust */
}
/* or in JavaScript */
if (CSS.supports("font-size-adjust", "initial")) {
// use it
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (6). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| @font-face.size-adjust | 92 | 92 | 92 | 17 | 92 | 92 | 17 |
| font-size-adjust | 127 | 127 | 3 | 16.4 | 127 | 4 | 16.4 |
| font-size-adjust.from-font | 127 | 127 | 118 | 17 | 127 | 118 | 17 |
| font-size-adjust.none | 127 | 127 | 3 | 16.4 | 127 | 4 | 16.4 |
| font-size-adjust.two-values | 127 | 127 | 92 | 17 | 127 | 92 | 17 |
| svg.global_attributes.font-size-adjust | 127 | 127 | 3 | 16.4 | 127 | 4 | 16.4 |