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
<dd> Position the line with respect to the lowest <a
505
-
href="#under"><i>under</i></a> content edge of the decorated fragments.
506
-
507
-
<dt>line-throughs
508
-
509
-
<dd> For each set of decorated fragments with the same ‘<code
510
-
class=property>font-size</code>’, compute an ideal position averaged
511
-
from their direct contents and font metrics, ignoring any fragments with
512
-
non-initial ‘<codeclass=property>vertical-align</code>’ and
513
-
assigning them the ideal position of their parent. Position the portion
514
-
of the line across each decorated fragment at the fragment's ideal
515
-
position. (Essentially, this performs the same sort of averaging as for
516
-
alphabetic underlines, but recomputes the position when drawing across a
517
-
descendant with a different computed ‘<code
518
-
class=property>font-size</code>’.) <spanclass=issue>Need an example
519
-
here</span>
520
-
</dl>
521
-
522
-
<divclass=example>
523
-
<p>The following figure shows the averaging for underline:
524
-
525
-
<p><img
526
-
alt="In the first rendering of the underlined text '1st a' with 'st' as a superscript, both the '1st' and the 'a' are rendered in a small font. In the second rendering, the 'a' is rendered in a larger font. In the third, both '1st' and 'a' are large."
527
-
height=105src=underline-averaging.gifwidth=326>
528
-
529
-
<p>In the three fragments of underlined text, the underline is drawn
530
-
consecutively lower and thicker as the ratio of large text to small text
531
-
increases.
532
-
</div>
533
-
534
486
<h3id=text-decoration-color-property><spanclass=secno>2.2. </span> Text
535
487
Decoration Color: the ‘<ahref="#text-decoration-color"><code
<dd> Position the line with respect to the lowest <a
991
+
href="#under"><i>under</i></a> content edge of the decorated fragments.
992
+
993
+
<dt>line-throughs
994
+
995
+
<dd> For each set of decorated fragments with the same ‘<code
996
+
class=property>font-size</code>’, compute an ideal position averaged
997
+
from their direct contents and font metrics, ignoring any fragments with
998
+
non-initial ‘<codeclass=property>vertical-align</code>’ and
999
+
assigning them the ideal position of their parent. Position the portion
1000
+
of the line across each decorated fragment at the fragment's ideal
1001
+
position. (Essentially, this performs the same sort of averaging as for
1002
+
alphabetic underlines, but recomputes the position when drawing across a
1003
+
descendant with a different computed ‘<code
1004
+
class=property>font-size</code>’.) <spanclass=issue>Need an example
1005
+
here</span>
1006
+
</dl>
1007
+
1008
+
<p> CSS does not define the thickness of line decorations. In determining
1009
+
the thickness of text decoration lines, user agents may consider the font
1010
+
sizes, faces, and weights of descendants to provide an appropriately
1011
+
averaged thickness.
1012
+
1013
+
<divclass=example>
1014
+
<p>The following figure shows the averaging for underline:
1015
+
1016
+
<p><img
1017
+
alt="In the first rendering of the underlined text '1st a' with 'st' as a superscript, both the '1st' and the 'a' are rendered in a small font. In the second rendering, the 'a' is rendered in a larger font. In the third, both '1st' and 'a' are large."
1018
+
height=105src=underline-averaging.gifwidth=326>
1019
+
1020
+
<p>In the three fragments of underlined text, the underline is drawn
1021
+
consecutively lower and thicker as the ratio of large text to small text
1022
+
increases.
1023
+
</div>
1024
+
1014
1025
<divclass=note>
1015
1026
<p>In some cases (such as in OpenType) the font format can offer
1016
1027
information about the appropriate position of an underline. Typically
0 commit comments