Skip to content

Commit f0e663e

Browse files
committed
[css-ui-4] Tweaks to text-decoration-skip-* based on review of w3c#843
1 parent 7088d0e commit f0e663e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

css-text-decor-4/Overview.bs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,11 @@ Text Decoration Line Continuity: the 'text-decoration-skip' shorthand and its su
817817
</pre>
818818

819819
The 'text-decoration-skip' property and its sub-properties
820-
('text-decoration-skip-self', 'text-decoration-skip-edge', 'text-decoration-skip-spaces', 'text-decoration-skip-ink')
820+
('text-decoration-skip-self',
821+
'text-decoration-skip-box',
822+
'text-decoration-skip-inset',
823+
'text-decoration-skip-spaces',
824+
'text-decoration-skip-ink')
821825
control interruptions in line decorations
822826
for which the element or an ancestor is the [=decorating box=].
823827
The <dfn value for=text-decoration-skip>none</dfn> value
@@ -881,7 +885,7 @@ Skipping Spaces: the 'text-decoration-skip-self' property</h4>
881885
-->
882886
</dl>
883887

884-
<h4 id="text-decoration-skip-edges-property">
888+
<h4 id="text-decoration-skip-box-property">
885889
Skipping Spaces: the 'text-decoration-skip-box' property</h4>
886890

887891
<pre class="propdef">
@@ -949,17 +953,19 @@ Inset Edges: the 'text-decoration-skip-inset' property</h4>
949953

950954
<dt><dfn>auto</dfn></dt>
951955
<dd>
952-
The UA should place the start and end of the line inwards slightly
953-
(e.g. by half a line thickness)
956+
The UA must place the start and end of the line inwards slightly
954957
from the content edge of the <a>decorating box</a> so that,
955958
e.g. two underlined elements side-by-side do not appear to have a single underline.
959+
The size of the inset is up to the User Agent
960+
(e.g. half a line thickness)
961+
but must not be zero.
956962
(This is important in Chinese, where underlining is a form of punctuation.)
957963

958964
<div class="figure">
959-
<p><img title="text-decoration-skip: edges"
965+
<p><img title="text-decoration-skip-inset: auto"
960966
alt="An underline below a series of Chinese characters has a gap between two adjacent underlining elements."
961-
src="images/decoration-skip-edges.png">
962-
<p class="caption">''text-decoration-skip: edges'' for <code>&lt;u>石井&lt;/u>&lt;u>艾俐俐&lt;/u></code>
967+
src="images/decoration-skip-inset.png">
968+
<p class="caption">''text-decoration-skip-inset: auto'' for <code>&lt;u>石井&lt;/u>&lt;u>艾俐俐&lt;/u></code>
963969
</p>
964970
</div>
965971
</dl>
@@ -970,7 +976,7 @@ Skipping Spaces: the 'text-decoration-skip-spaces' property</h4>
970976
<pre class="propdef">
971977
Name: text-decoration-skip-spaces
972978
Value: none | all | [ start || end ]
973-
Initial: leading trailing
979+
Initial: start end
974980
Applies to: all elements
975981
Inherited: yes
976982
Percentages: N/A
@@ -996,15 +1002,15 @@ Skipping Spaces: the 'text-decoration-skip-spaces' property</h4>
9961002
with the Unicode White_Space property [[UAX44]],
9971003
plus any adjacent 'letter-spacing' or 'word-spacing'.
9981004

999-
<dt><dfn>leading</dfn></dt>
1005+
<dt><dfn>start</dfn></dt>
10001006
<dd>
10011007
Skip all spaces,
10021008
i.e. all <a>typographic character units</a> with the Unicode White_Space property [[UAX44]]
10031009
and all <a href="https://www.w3.org/TR/css3-text/#word-separator">word separators</a>
10041010
plus any adjacent 'letter-spacing' or 'word-spacing',
10051011
when located at the start of the line.
10061012

1007-
<dt><dfn>trailing</dfn></dt>
1013+
<dt><dfn>end</dfn></dt>
10081014
<dd>
10091015
Skip all spacing,
10101016
i.e. all <a>typographic character units</a> with the Unicode White_Space property [[UAX44]]
@@ -1016,8 +1022,6 @@ Skipping Spaces: the 'text-decoration-skip-spaces' property</h4>
10161022
ISSUE: Should ''text-decoration-skip-spaces'' really skip all spaces?
10171023
Or should it only skip word-separators that are also spaces?
10181024

1019-
ISSUE: Should we rename ''leading'' and ''trailing'' to <css>start</css> and <css>end</css> to make things simpler for i18n?
1020-
10211025
<h4 id="text-decoration-skip-ink-property">
10221026
Skipping Glyphs: the 'text-decoration-skip-ink' property</h4>
10231027

0 commit comments

Comments
 (0)