You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and consequently scaling the computed size of the other <<absolute-size>> keywords.
91
+
is recognized as controlling the [=text scale factor=].
86
92
87
93
Issue(12475):
88
94
@@ -123,10 +129,8 @@ The recognized keywords in the [=text-scale=]
123
129
<h3 id="legacy-keyword">The 'legacy' keyword</h3>
124
130
125
131
When the value of the [=text-scale=] content attribute is
126
-
[=text-scale/legacy=]
127
-
the user agent must set the computed ''font-size/medium'' font size
128
-
to 16px multiplied by
129
-
the font scale factor
132
+
[=text-scale/legacy=],
133
+
the [=text scale factor=] is the font scale factor
130
134
the user has chosen from any settings <i>provided by the user agent</i>.
131
135
The ''preferred-text-scale'' environment variable value must be 1 on desktop platforms.
132
136
On mobile:
@@ -151,12 +155,12 @@ The <dfn for="text-scale" export><code>scale</code></dfn> property is
151
155
recognized in the [=text-scale=] content attribute value.
152
156
153
157
When the value of the [=text-scale=] content attribute is
154
-
<a for=text-scale>scale</a>
155
-
computed ''font-size/medium'' font size must match the user's preferred paragraph text size as determined from a combination of OS and UA preferences.
158
+
<a for=text-scale>scale</a>,
159
+
the [=text scale factor=] matches the user's preferred paragraph text size
160
+
(as determined from a combination of OS and UA preferences)
161
+
divided by 16px.
156
162
157
-
The ''env()/preferred-text-scale'' environment variable must return a number that,
158
-
when multiplied by 16px,
159
-
provides a <<length>> that matches that of the ''font-size/medium'' font size.
163
+
The ''env()/preferred-text-scale'' environment variable must return the [=text scale factor=].
160
164
161
165
Further, when the value of the [=text-scale=] content attribute is
162
166
<a for=text-scale>scale</a>, the user agent should skip all font-sizing interventions it would otherwise perform in an attempt to automatically honor the user's preferences. E.g. text autosizing on mobile (See [[css-size-adjust#intro]]) and full-application zoom (<a href="https://github.com/w3c/csswg-drafts/blob/main/css-env-1/explainers/env-preferred-text-scale.md#windows-11">popular browsers do this on Windows)</a>.
0 commit comments