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
There must not be more than one <{meta}> element with its <{meta/name}> attribute value set to an [=ASCII case-insensitive=] for [=text-scale=] per document.
@@ -149,6 +149,31 @@ Further, when the value of the [=text-scale=] content attribute is
149
149
Note: Authors are expected to use
150
150
''<meta name="text-scale" content="scale">'' in stylesheets so that the ''font-size/medium'' 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.
151
151
152
+
<div class="example" id="ex-scaled-page">
153
+
If authors don't alter the '':root'' font size, content sized with ''rem'' units will be relative to the preferred text scale
154
+
<pre>
155
+
<!DOCTYPE html>
156
+
<html> <!-- leave this element's font-size as the default -->
157
+
<head>
158
+
<meta name="text-scale" content="scale" />
159
+
</head>
160
+
<body>
161
+
<div style="font-size: 1rem;">
162
+
This font size obeys the user's font preferences, **whether
163
+
those preferences are specified at the operating system level
164
+
or the user agent level**
165
+
</div>
166
+
<div style="font-size: 20px;">
167
+
This font size does NOT respect the user's font preferences.
0 commit comments