Skip to content

Commit b78dae7

Browse files
davidsgrogansvgeesus
authored andcommitted
attempt to make a concept
1 parent 08a9cf2 commit b78dae7

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

css-fonts-5/Overview.bs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,19 @@ For readability they have not been repeated explicitly.
7676
<h2 id="text-scale-meta">
7777
Text-Scale <code class=html>&lt;meta&gt;</code> element</h2>
7878

79+
The <dfn>text scale factor</dfn> is a multiplier
80+
used to calculate the computed value of the ''font-size/medium'' font size.
81+
The computed value of ''font-size/medium''
82+
is 16px
83+
multiplied by the [=text scale factor=].
84+
This factor consequently
85+
scales the computed size of the other <<absolute-size>> keywords.
86+
7987
A document with a <{meta}> tag
8088
whose <{meta/name}> attribute
8189
is a <a>ASCII case-insensitive</a> match for
8290
<dfn lt=text-scale><code>"text-scale"</code></dfn>
83-
is recognized as setting the computed value
84-
of the ''font-size/medium'' font size
85-
and consequently scaling the computed size of the other <<absolute-size>> keywords.
91+
is recognized as controlling the [=text scale factor=].
8692

8793
Issue(12475):
8894

@@ -123,10 +129,8 @@ The recognized keywords in the [=text-scale=]
123129
<h3 id="legacy-keyword">The 'legacy' keyword</h3>
124130

125131
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
130134
the user has chosen from any settings <i>provided by the user agent</i>.
131135
The ''preferred-text-scale'' environment variable value must be 1 on desktop platforms.
132136
On mobile:
@@ -151,12 +155,12 @@ The <dfn for="text-scale" export><code>scale</code></dfn> property is
151155
recognized in the [=text-scale=] content attribute value.
152156

153157
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.
156162

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=].
160164

161165
Further, when the value of the [=text-scale=] content attribute is
162166
<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

Comments
 (0)