8000 [css-text-decor] dbaron says positioning should be per box, not per d… · w3c/csswg-drafts@1c85723 · GitHub
Skip to content

Commit 1c85723

Browse files
committed
[css-text-decor] dbaron says positioning should be per box, not per decorating fragment. <http://lists.w3.org/Archives/Public/www-style/2013Mar/0532.html> Also, skip things that are being skipped.
1 parent ebee09d commit 1c85723

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

css-text-decor/Overview.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,10 +1048,15 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
10481048
vertical alignments, the best position for a line decoration is not
10491049
necessarily the ideal position dictated by the decorating element. In
10501050
determining the position of text decoration lines, user agents must
1051-
consider, per line box, the “ideal” positions of such line decorations
1052-
per fragment of the <a href="#decorating-box"><i>decorating
1053-
box</i></a>—or its in-flow inline descendant—that draws the text
1054-
decoration.
1051+
consider, for each <a href="#decorating-box"><i>decorating box</i></a>,
1052+
the “ideal” positions of such line decorations per fragment of the <a
1053+
href="#decorating-box"><i>decorating box</i></a>—or its in-flow inline
1054+
descendant—that draws the text decoration. However, descendant fragments
1055+
of the <i>decorating element</i> that are skipped due to ‘<a
1056+
href="#text-decoration-skip"><code
1057+
class=property>text-decoration-skip</code></a>’ (including elements with
1058+
<code class=css>text-decoration-skip: ink</code>’) are excluded from
1059+
consideration.
10551060

10561061
<p> The line decoration positions are then calculated as follows (treating
10571062
<a href="#underline-left"><i>over</i>-positioned underlines</a> as

css-text-decor/Overview.src.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,14 @@ <h3 id="line-position">
694694
vertical alignments, the best position for a line decoration is not
695695
necessarily the ideal position dictated by the decorating element.
696696
In determining the position of text decoration lines,
697-
user agents must consider, per line box, the “ideal” positions of such line decorations
698-
per fragment of the <i>decorating box</i>&mdash;or its in-flow inline descendant&mdash;that
697+
user agents must consider, for each <i>decorating box</i>,
698+
the “ideal” positions of such line decorations per fragment
699+
of the <i>decorating box</i>&mdash;or its in-flow inline descendant&mdash;that
699700
draws the text decoration.
701+
However, descendant fragments of the <i>decorating element</i>
702+
that are skipped due to 'text-decoration-skip'
703+
(including elements with ''text-decoration-skip: ink'')
704+
are excluded from consideration.
700705

701706
<p>
702707
The line decoration positions are then calculated

0 commit comments

Comments
 (0)