Skip to content

Commit 2e10cb8

Browse files
author
Litherum
committed
[css-fonts] Make larger/smaller simple ratios
#1711
1 parent 1d1a8e9 commit 2e10cb8

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

css-fonts-4/Overview.bs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -636,18 +636,23 @@ Values have the following meanings:
636636
<dt><dfn><<relative-size>></dfn>
637637
<dd>
638638
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:
641641

642642
<pre class=prod>[ larger | smaller ]</pre>
643643

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.
651656

652657
<dt><dfn><<length-percentage>></dfn>
653658
<dd>

0 commit comments

Comments
 (0)