Skip to content

WPT <meta name="text-scale" content="scale"> #1423

Open

Description

@jackholden

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).

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.

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

Activity

  1. added
    investigation-effort-proposal
    on Sep 21, 2026
  2. changed the title [-]<meta name="text-scale" content="scale">[/-] [+]WPT <meta name="text-scale" content="scale">[/+] on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigation-effort-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions