-
Notifications
You must be signed in to change notification settings - Fork 759
[css-fonts-5] Define behavior for <meta text-scale> from #12380 #13052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
8d5f5e2
18f2f8b
b729d74
0206973
c287984
f6d1a0c
3716341
828b01e
65d7813
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Co-authored-by: Josh Tumath <josh.tumath@bbc.co.uk>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ The recognized keywords in the [=text-scale=] | |
| <{meta}> element are: | ||
|
|
||
| <dl> | ||
| <dt><dfn for="text-scale"><code>legacy</code></dfn></dt> | ||
| <dt><dfn for="text-scale">legacy</dfn></dt> | ||
| <dd>''env()/preferred-text-scale'' returns the user's OS-level font factor on mobile, | ||
| but 1 on desktop. | ||
| The document's initial font size only incorporates UA-level font preferences. | ||
|
|
@@ -106,7 +106,7 @@ 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: | ||
| <ul> | ||
| <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>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 multiplier that the user has chosen in the operating system's text scale setting. | ||
|
|
||
| Note: As of this writing, all combinations of Android, iOS, Gecko, WebKit, Blink satisfy this first condition. | ||
davidsgrogan marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.