Description
@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.
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 toenv(preferred-text-scale)
Since then, we published an Explainer for env(preferred-text-scale)
.
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