Skip to content

Commit 0ff76a5

Browse files
committed
[css-text-decor] Clarify note to avoid confusion such as <#160 (comment)>. Adjust wording in subsequent paragraph to help distinguish the two cases (baseline alignment vs. baseline shift). #160
1 parent 5ec924d commit 0ff76a5

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

css-text-decor/Overview.bs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Values</h3>
7373
<dfn><a href="https://www.w3.org/TR/css3-text/#content-language">content language</a></dfn>
7474
as used in this specification are defined in [[!CSS3TEXT]].
7575
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]].
7777

7878
<h2 id="line-decoration">
7979
Line Decoration: Underline, Overline, and Strike-Through</h2>
@@ -465,16 +465,30 @@ Text Underline Position: the 'text-underline-position' property</h3>
465465
For example, an overline positioned to a small font
466466
will effectively become a line-through if the element contains text in a significantly larger font-size.
467467
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]])
469470
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+
470473
<div class="figure">
471474
<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.
472483
</div>
473484
</div>
474485

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]]
476489
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.
478492
This allows superscripts and subscripts to be properly decorated
479493
(underlined, struck through, etc.)
480494
but prevents them from distorting or breaking the positioning of such decorations on their ancestors.

0 commit comments

Comments
 (0)