Skip to content

Commit 5d693dd

Browse files
committed
[css-text-decor-3] More clarifications to alphabetic underline positioning
1 parent f7fcb0e commit 5d693dd

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

css-text-decor-3/Overview.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,14 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
983983

984984
<dt><a href="#alphabetic"><i>alphabetic</i></a> underlines
985985

986-
<dd> Align the line decoration to an average of the ideal underlines of
987-
the considered fragments, assigning any inline with non-initial ‘<code
988-
class=property>vertical-align</code>’ the ideal position of its parent,
989-
but keeping the line decoration below the lowest alphabetic baseline
990-
considered. (A considered alphabetic baseline can be above the averaged
991-
position if the dominant baseline is non-alphabetic.)
986+
<dd> Calculate an average of the ideal underlining offsets (from their
987+
respective alphabetic baselines) of the considered fragments, assigning
988+
any inline with non-initial ‘<code
989+
class=property>vertical-align</code>’ the ideal offset of its parent.
990+
Align the line decoration to the lowest alphabetic baseline considered,
991+
with that calculated offset. (Alphabetic baselines can differ between
992+
<code class=css>baseline</code>’-aligned boxes if the dominant
993+
baseline is non-alphabetic.)
992994

993995
<dt>non-alphabetic underlines (and <a
994996
href="#under"><i>under</i></a>-positioned overlines)

css-text-decor-3/Overview.src.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,13 @@ <h3 id="line-position">
648648

649649
<dt><i>alphabetic</i> underlines
650650
<dd>
651-
Align the line decoration to an average of the ideal underlines of the considered fragments,
652-
assigning any inline with non-initial 'vertical-align' the ideal position of its parent,
653-
but keeping the line decoration below the lowest alphabetic baseline considered.
654-
(A considered alphabetic baseline can be above the averaged position if the dominant baseline is non-alphabetic.)
651+
Calculate an average of the ideal underlining offsets
652+
(from their respective alphabetic baselines)
653+
of the considered fragments,
654+
assigning any inline with non-initial 'vertical-align' the ideal offset of its parent.
655+
Align the line decoration to the lowest alphabetic baseline considered,
656+
with that calculated offset.
657+
(Alphabetic baselines can differ between ''baseline''-aligned boxes if the dominant baseline is non-alphabetic.)
655658

656659
<dt>non-alphabetic underlines (and <i>under</i>-positioned overlines)
657660
<dd>

0 commit comments

Comments
 (0)