Skip to content

Commit 709f12c

Browse files
davidsgrogansvgeesus
authored andcommitted
add 'environment variable' following ''preferred-text-scale''
1 parent 045fe28 commit 709f12c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css-fonts-5/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The recognized keywords in the [=text-scale=]
9292

9393
<dl>
9494
<dt><dfn for="text-scale">legacy</dfn></dt>
95-
<dd>''env()/preferred-text-scale'' returns the user's OS-level font factor on mobile,
95+
<dd>The ''env()/preferred-text-scale'' environment variable returns the user's OS-level font factor on mobile,
9696
but 1 on desktop.
9797
The document's ''font-size/medium'' font size incorporates UA-level font preferences.
9898
OS-level font preferences are ignored.
@@ -101,7 +101,7 @@ The recognized keywords in the [=text-scale=]
101101
including an unrecognized content attribute keyword.
102102
</dd>
103103
<dt><dfn>scale</dfn></dt>
104-
<dd>''env()/preferred-text-scale'' returns the user's OS-level font preferences.
104+
<dd>The ''env()/preferred-text-scale'' environment variable returns the user's OS-level font preferences.
105105
The document's ''font-size/medium'' font size incorporates both UA-level and OS-level font preferences.</dd>
106106
</dl>
107107

@@ -113,21 +113,21 @@ the user agent must set the computed ''font-size/medium'' font size
113113
to 16px multiplied by
114114
the font scale factor
115115
the user has chosen from any settings <i>provided by the user agent</i>.
116-
The ''preferred-text-scale'' value must be 1 on desktop platforms.
116+
The ''preferred-text-scale'' environment variable value must be 1 on desktop platforms.
117117
On mobile:
118118
<ul>
119119
<li>if the operating system provides a text scale setting AND
120120
the UA hasn't already applied that factor to the ''font-size/medium'' font size,
121-
''env()/preferred-text-scale'' returns the multiplier
121+
the ''env()/preferred-text-scale'' environment variable returns the multiplier
122122
that the user has chosen in the operating system's text scale setting.
123123

124124
Note: At the time of publishing, all combinations of
125125
Android, iOS,
126-
Gecko, WebKit, Blink
126+
Firefox, Safari, Chrome
127127
satisfy this first condition.
128128

129129
</li>
130-
<li>Otherwise ''env()/preferred-text-scale'' returns 1.</li>
130+
<li>Otherwise the ''env()/preferred-text-scale'' environment variable returns 1.</li>
131131
</ul>
132132

133133
<h3 id="scale-keyword">The 'scale' keyword</h3>
@@ -139,7 +139,7 @@ When the value of the [=text-scale=] content attribute is
139139
<a for=text-scale>scale</a>
140140
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.
141141

142-
The ''env()/preferred-text-scale'' value must be a number that,
142+
The ''env()/preferred-text-scale'' environment variable must return a number that,
143143
when multiplied by 16px,
144144
provides a <<length>> that matches that of the ''font-size/medium'' font size.
145145

0 commit comments

Comments
 (0)