[csswg-drafts] [css-env][css-fonts] Changing the initial font size using <meta text-scale> (#12380)

JoshTumath has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-env][css-fonts] Changing the initial font size using <meta text-scale> ==
@davidsgrogan, @progers and I would like to propose a new HTML meta tag called `text-scale` with the following values:

* `<meta name="text-scale" content="legacy">`
* `<meta name="text-scale" content="scale">`

When the author specifies the `scale` option, the UA's initial font size is affected by the OS-level text scale setting.

**➡️ For all of the details of the proposal, read our [Explainer on a meta tag for text scaling behaviour.](https://github.com/w3c/csswg-drafts/blob/main/css-env-1/explainers/meta-text-scale.md)**

We'd love to hear your feedback!

## Background

In #10674, I wanted to solve the problem of how web content doesn't scale based on the OS text scale setting, which was an important accessibility issue for us at the BBC.

The CSSWG resolved to adopt:

* a new environment variable `env(preferred-text-scale)`, which will give authors the amount that the user has scaled their text size. 
* a new unit called `pem` which will be relative to `env(preferred-text-scale)`

Since then, we published an [Explainer for `env(preferred-text-scale)`](https://github.com/w3c/csswg-drafts/blob/main/css-env-1/explainers/env-preferred-text-scale.md).

However, after gathering feedback from authors at conferences recently, I found authors didn't like the sound of the `pem` unit. They would rather continue to use `rem` units as they do now. So we no longer believe the `pem` units are worthwhile, and believe the original idea for a `<meta>` tag to turn on the new/correct/proper text scaling behaviour will be much better (see the Explainer for more info).

## Proposed resolutions

* To adopt the proposal in the Explainer for a `<meta text-scale>` tag
* To retract the resolution for a `pem` unit

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12380 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 21 June 2025 00:16:10 UTC