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
Copy file name to clipboardExpand all lines: css-fonts-4/Overview.bs
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -636,18 +636,23 @@ Values have the following meanings:
636
636
<dt><dfn><<relative-size>></dfn>
637
637
<dd>
638
638
A <<relative-size>> keyword is interpreted
639
-
relative to the table of font sizes and the computed 'font-size' of the
640
-
parent element. Possible values are:
639
+
relative to the computed 'font-size' of the
640
+
parent element and possibly the table of font sizes. Possible values are:
641
641
642
642
<pre class=prod>[ larger | smaller ]</pre>
643
643
644
-
For example, if the parent element has a font size of
645
-
''medium'', a value of ''larger'' will make the font size of the
646
-
current element be ''large''. If the parent element's size is not
647
-
close to a table entry, the user agent is free to interpolate
648
-
between table entries or round off to the closest one. The user
649
-
agent might have to extrapolate table values if the numerical value
650
-
goes beyond the keywords.
644
+
If the parent element has a keyword font size in the previous table, ''larger''
645
+
may make the font size equal to the next entry in the
646
+
table, and ''smaller'' may make the font size of the current element equal to the previous entry in the table.
647
+
648
+
For example, if the parent element has a font size of ''medium'', a value of ''larger'' may make the font size of the current element be ''large''.
649
+
650
+
Instead of using next and previous items in the previous keyword table,
651
+
User Agents may instead use a simple ratio to increase or decrease the
652
+
font size relative to the parent element. The specific ratio is unspecified,
653
+
but should be around 1.2 - 1.5. This ratio may vary across different elements.
654
+
655
+
Note: A sight-impared user may request a User Agent use a higher ratio than default, in order to aid readability. In addition, a User Agent may choose to use different ratios when it detects paragraph text as opposed to title text.
0 commit comments