diff --git a/css-fonts-5/Overview.bs b/css-fonts-5/Overview.bs index 026a8b54deaa..a037a3ecac5a 100644 --- a/css-fonts-5/Overview.bs +++ b/css-fonts-5/Overview.bs @@ -25,6 +25,7 @@ spec:css-color-4; type:property; text:color spec:css-values; type:value; text:ex spec:css22; type:value; for:/; text:block spec:html; type:element; text:font +spec:html; type:element; text:meta spec:css-fonts-4; type:property; text:font-size spec:css-fonts-4; type:descriptor; text:font-language-override spec:css-fonts-4; type:property; text:font-family @@ -74,6 +75,126 @@ all properties defined in this specification also accept the CSS-wide keywords as their property value. For readability they have not been repeated explicitly. +
"text-scale"
+is recognized as controlling the [=text scale factor=].
+
+The value of the <{meta/content}>
+attribute must be an ASCII case-insensitive match for one of the
+recognized keywords. Otherwise the tag is ignored.
+
+Documents without this <{meta}> tag will have an assumed default
+value of legacy.
+
+<meta name="text-scale" content="scale" />+
<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.
+
++<!DOCTYPE html> +<html> <!-- leave this element's font-size as the default --> + <head> + <meta name="text-scale" content="scale" /> + </head> + <body> + <div style="font-size: 1rem;"> + This font size obeys the user's font preferences, **whether + those preferences are specified at the operating system level + or the user agent level** + </div> + <div style="font-size: 20px;"> + This font size does NOT respect the user's font preferences. + <div style="font-size: 1rem;"> + But this font size does! + </div> + </div> + </body> +</html> ++