@@ -73,7 +73,7 @@ Values</h3>
73
73
<dfn><a href="https://www.w3.org/TR/css3-text/#content-language">content language</a></dfn>
74
74
as used in this specification are defined in [[!CSS3TEXT]] .
75
75
Other terminology and concepts used in this specification are defined
76
- in [[!CSS21]] and [[!CSS3 -WRITING-MODES]] .
76
+ in [[!CSS21]] and [[!CSS -WRITING-MODES-3 ]] .
77
77
78
78
<h2 id="line-decoration">
79
79
Line Decoration: Underline, Overline, and Strike-Through</h2>
@@ -465,16 +465,30 @@ Text Underline Position: the 'text-underline-position' property</h3>
465
465
For example, an overline positioned to a small font
466
466
will effectively become a line-through if the element contains text in a significantly larger font-size.
467
467
Even for underlines, if the text is not aligned to the alphabetic baseline
468
- (for example, in vertical typesetting styles, text is aligned to the central baseline by default)
468
+ (for example, in vertical typesetting styles,
469
+ text is aligned by its central baseline by default [[CSS-WRITING-MODES-3]] )
469
470
an underline will cut through descendant text of a larger font-size.
471
+ UA consideration of descendant content will therefore result in better typography.
472
+
470
473
<div class="figure">
471
474
<p><img src="leftline-cross.png" alt="">
475
+ <img src="leftline-under.png" alt="">
476
+ <p class="caption">
477
+ Due to the central baseline alignment of vertical text,
478
+ a left-side underline on small vertical text will cut through the text
479
+ of a child with a larger font size.
480
+ The underline is not allowed to be broken,
481
+ but adjusting its position further to the left
482
+ properly accommodates all of the underlined text.
472
483
</div>
473
484
</div>
474
485
475
- <p> UAs <em> must</em> adjust line positions to match the shifted metrics of <i> decorating boxes</i> positioned with 'vertical-align' [[!CSS21]]
486
+ <p> UAs <em> must</em> adjust line positions
487
+ to match the shifted metrics of <i> decorating boxes</i> shifted
488
+ with 'vertical-align' values other than ''vertical-align/baseline'' [[!CSS21]]
476
489
or subscripted/superscripted via 'font-variant-position' [[!CSS3-FONTS]] ,
477
- but <em> must not</em> adjust the line position or thickness in response to descendants of a <i> decorating box</i> that are so styled.
490
+ but <em> must not</em> adjust the line position or thickness
491
+ in response to descendants of a <i> decorating box</i> that are so styled.
478
492
This allows superscripts and subscripts to be properly decorated
479
493
(underlined, struck through, etc.)
480
494
but prevents them from distorting or breaking the positioning of such decorations on their ancestors.
0 commit comments