Repository navigation
Description
Description
<meta name="text-scale" content="scale"> tells the UA the page is built to honour user text-size preferences. It scales the root element’s initial font-size (medium, which sets rem) from OS and UA font settings, and turns off existing heuristics such as mobile text auto sizing.
legacy (or no tag at all) keeps today’s behaviour.
The feature is in CSS Fonts 5 and has shipped in Chromium (146+). It is not in public WPT because there is no API to change the user’s font-size preference in the test environment (Chromium).
- https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/text-scale
- https://github.com/w3c/csswg-drafts/blob/main/css-env-1/explainers/meta-text-scale.md
Rationale
Users routinely change OS text size, particularly on smaller devices; text scaling on the web is inconsistent (full-page zoom vs auto sizing vs nothing). This opt-in is meant to make rem-based pages respect that preference.
- https://www.joshtumath.uk/posts/2026-01-27-try-text-scaling-support-in-chrome-canary/
- https://adrianroselli.com/2026/02/honoring-mobile-os-text-size.html
- https://matuzo.at/blog/2026/text-scaling-meta-tag
As Rick Byers says:
Nice! Text sizing has been a longstanding wart in the web with it's unpredictability and inconsistent behavior. Thank you for investing to rationalize it!
Browser positions:
Chromium: Shipped
Mozilla: Positive
WebKit: Pending
Investigation Roadmap
Behaviour is already specified in CSS Fonts 5. Main investigative area is testability.
WPT: There is no way to simulate changing user font-size preferences. Currently Chromium only has internal tests today.
Maybe out of scope but numerous reviewers have also asked for this to be included in the WHATWG/HTML (whatwg/html#12526; see also WebKit discussion).
This will be complete once the necessary tests are on wpt.fyi
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
[-]<meta name="text-scale" content="scale">[/-][+]WPT <meta name="text-scale" content="scale">[/+]