Skip to content

Commit 03f4f55

Browse files
davidsgrogansvgeesus
authored andcommitted
Small revisions
1 parent c7d96b2 commit 03f4f55

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

css-fonts-5/Overview.bs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ When the value of the [=text-scale=] content attribute is
9292
<a for="text-scale">legacy</a> the user agent should set the initial font size
9393
to 16px multiplied by the font scale factor the user has chosen from any settings <i>provided by the user agent</i>. The ''preferred-text-scale'' value must be 1 on desktop platforms. On mobile:
9494
<ul>
95-
<li>if the operating system provides a text scale setting AND the UA hasn't already applied that factor to the initial font size, ''env()/preferred-text-scale'' returns the mulitplier that the user has chosen in the operating system's text scale setting.</li>
95+
<li>if the operating system provides a text scale setting AND the UA hasn't already applied that factor to the initial font size, ''env()/preferred-text-scale'' returns the mulitplier that the user has chosen in the operating system's text scale setting.
96+
97+
Note: As of this writing, all combinations of Android, iOS, Gecko, WebKit, Blink satisfy this first condition.
98+
99+
</li>
96100
<li>Otherwise ''env()/preferred-text-scale'' returns 1.</li>
97101
</ul>
98102

99-
Note: As of this writing, all combinations of Android, iOS, Gecko, WebKit, Blink qualify for the first bullet point above.
100-
101103
<h3 id="scale-keyword">The 'scale' keyword</h3>
102104

103105
The <dfn for="text-scale" export><code>scale</code></dfn> property is
@@ -110,13 +112,10 @@ based on a combination of the operating system's text scale setting and the user
110112
16px, provides a <<length>> that matches that of the initial font size.
111113

112114
Further, when the value of the [=text-scale=] content attribute is
113-
<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-page 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>.
114-
115-
See the <a href="https://github.com/w3c/csswg-drafts/blob/main/css-env-1/explainers/env-preferred-text-scale.md#windows-11">
116-
preferred text scale explainer</a> for more details.
115+
<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>.
117116

118117
Note: It is expected that authors will use
119-
''&lt;meta name="text-scale" content="scale"&gt;'' in stylesheets so that the initial font size will reflect an amalgam of the user's font preferences, whether those are specified at the OS level or the UA level. The author will then be able to use ''rem'' throughout the page to honor the user's font preferences.
118+
''&lt;meta name="text-scale" content="scale"&gt;'' in stylesheets so that the initial font size will reflect a combination of the user's font preferences, whether those are specified at the OS level or the UA level. The author will then be able to use ''rem'' throughout the page to honor the user's font preferences.
120119

121120
<h3 id="values">
122121
Value Definitions</h3>

0 commit comments

Comments
 (0)