Skip to content

Commit 53193b2

Browse files
committed
Add text-decoration-skip: edges
1 parent 2905b57 commit 53193b2

2 files changed

Lines changed: 46 additions & 31 deletions

File tree

css3-text/Overview.html

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383

8484
<h1>CSS Text Level 3</h1>
8585

86-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 April 2011</h2>
86+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 April 2011</h2>
8787

8888
<dl>
8989
<dt>This version:
9090

9191
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
92-
2011/04/16 08:02:53 $ (CVS $Revision$)</a> <!--
93-
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110416/">http://www.w3.org/TR/2011/WD-css3-text-20110416/</a></dd>
92+
2011/04/16 08:55:58 $ (CVS $Revision$)</a> <!--
93+
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110418/">http://www.w3.org/TR/2011/WD-css3-text-20110418/</a></dd>
9494
-->
9595

9696

@@ -4218,16 +4218,11 @@ <h3 id=line-decoration><span class=secno>11.1. </span> Line Decoration:
42184218
<p>By default underlines, overlines, and line-throughs are applied only to
42194219
text (including white space, letter spacing, and word spacing): margins,
42204220
borders, and padding are skipped. Elements containing no text, such as
4221-
images, are likewise not decorated. The <a
4222-
href="#text-decoration-skip"><code>text-decoration-skip</code></a>
4223-
property can be used to modify this behavior, for example allowing inline
4224-
replaced elements to be underlined or requiring that white space be
4225-
skipped.
4226-
4227-
<p>The UA should place the start and end of the line inwards from the
4228-
content edge of the decorating element so that, e.g. two underlined
4229-
elements side-by-side do not appear to have a single underline. (This is
4230-
important in Chinese, where underlining is a form of punctuation.)
4221+
images, are likewise not decorated. The &lsquo;<a
4222+
href="#text-decoration-skip0"><code
4223+
class=property>text-decoration-skip</code></a>&rsquo; property can be used
4224+
to modify this behavior, for example allowing inline replaced elements to
4225+
be underlined or requiring that white space be skipped.
42314226

42324227
<p>In determining the position and thickness of text decoration lines, user
42334228
agents may consider the font sizes and dominant baselines of descendants,
@@ -4602,7 +4597,7 @@ <h4 id=text-decoration-skip><span class=secno>11.1.5. </span> Text
46024597
<tr>
46034598
<th>Value:
46044599

4605-
<td>none | [ objects || spaces || ink ]
4600+
<td>none | [ objects || spaces || ink || edges ]
46064601

46074602
<tr>
46084603
<th>Initial:
@@ -4664,6 +4659,13 @@ <h4 id=text-decoration-skip><span class=secno>11.1.5. </span> Text
46644659
text show through where the text decoration would otherwise cross over a
46654660
glyph. The UA may also skip a small distance to either side of the glyph
46664661
outline.
4662+
4663+
<dt><dfn id=edges title="text-decoration-skip:edges">edges</dfn>
4664+
4665+
<dd>The UA should place the start and end of the line inwards from the
4666+
content edge of the decorating element so that, e.g. two underlined
4667+
elements side-by-side do not appear to have a single underline. (This is
4668+
important in Chinese, where underlining is a form of punctuation.)
46674669
</dl>
46684670

46694671
<p class=issue>Do we need a value that <em>doesn't</em> skip margins and
@@ -5578,10 +5580,10 @@ <h3 class=no-num id=normative-ref>Normative references</h3>
55785580

55795581
<dt id=UAX24>[UAX24]
55805582

5581-
<dd>Mark Davis. <a
5582-
href="http://www.unicode.org/unicode/reports/tr24/tr24-7.html"><cite>Script
5583-
Names.</cite></a> 28 March 2005. Unicode Standard Annex #24. URL: <a
5584-
href="http://www.unicode.org/unicode/reports/tr24/tr24-7.html">http://www.unicode.org/unicode/reports/tr24/tr24-7.html</a>
5583+
<dd>Mark Davis; Ken Whistler. <a
5584+
href="http://www.unicode.org/reports/tr24/"><cite>.</cite></a> 27
5585+
September 2010. Unicode Standard Annex #24. URL: <a
5586+
href="http://www.unicode.org/reports/tr24/">http://www.unicode.org/reports/tr24/</a>
55855587
</dd>
55865588
<!---->
55875589

@@ -5642,10 +5644,11 @@ <h3 class=no-num id=informative-ref>Informative references</h3>
56425644

56435645
<dt id=JLREQ>[JLREQ]
56445646

5645-
<dd>Kenzou Onozawa; et al. <a
5646-
href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604"><cite>Requirements
5647-
for Japanese Text Layout.</cite></a> 4 June 2009. W3C Note. URL: <a
5648-
href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604">http://www.w3.org/TR/2009/NOTE-jlreq-20090604</a>
5647+
<dd>Yasuhiro Anan; et al. <a
5648+
href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604/"><cite>Requirements
5649+
for Japanese Text Layout.</cite></a> 4 June 2009. W3C Working Group
5650+
Note. URL: <a
5651+
href="http://www.w3.org/TR/2009/NOTE-jlreq-20090604/">http://www.w3.org/TR/2009/NOTE-jlreq-20090604/</a>
56495652
</dd>
56505653
<!---->
56515654

@@ -5732,6 +5735,13 @@ <h2 class=no-num id=traditions>Appendix C: Cultural Correlations</h2>
57325735

57335736
<td>CJK (Japanese)
57345737

5738+
<tr>
5739+
<td>&lsquo;<a href="#text-decoration-skip0"><code
5740+
class=property>text-decoration-skip</code></a>&rsquo;: &lsquo;<code
5741+
class=css>edges</code>&rsquo;
5742+
5743+
<td>CJK
5744+
57355745
<tr>
57365746
<td>&lsquo;<a href="#text-justify0"><code
57375747
class=property>text-justify</code></a>&rsquo;: &lsquo;<code
@@ -6234,7 +6244,7 @@ <h2 class=no-num id=appendix-f-full-property-index>Appendix F: Full
62346244
<td><a class=property
62356245
href="#text-decoration-skip0">text-decoration-skip</a>
62366246

6237-
<td>none | [ objects || spaces || ink ]
6247+
<td>none | [ objects || spaces || ink || edges ]
62386248

62396249
<td>objects
62406250

@@ -6762,6 +6772,9 @@ <h2 class=no-num id=index>Appendix I: Index</h2>
67626772
<li>text-decoration-skip, <a href="#text-decoration-skip0"
67636773
title=text-decoration-skip><strong>11.1.5.</strong></a>
67646774

6775+
<li>text-decoration-skip:edges, <a href="#edges"
6776+
title="text-decoration-skip:edges"><strong>11.1.5.</strong></a>
6777+
67656778
<li>text-decoration-skip:ink, <a href="#ink"
67666779
title="text-decoration-skip:ink"><strong>11.1.5.</strong></a>
67676780

css3-text/Overview.src.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,17 +3158,11 @@ <h3 id="line-decoration">
31583158
to text (including white space, letter spacing, and word spacing):
31593159
margins, borders, and padding are skipped. Elements containing
31603160
no text, such as images, are likewise not decorated.
3161-
The <a href="#text-decoration-skip"><code>text-decoration-skip</code></a>
3161+
The 'text-decoration-skip'
31623162
property can be used to modify this behavior, for example allowing
31633163
inline replaced elements to be underlined or requiring that white
31643164
space be skipped.
31653165

3166-
<p>The UA should place the start and end of the line inwards from
3167-
the content edge of the decorating element so that, e.g. two
3168-
underlined elements side-by-side do not appear to have a single
3169-
underline. (This is important in Chinese, where underlining is a
3170-
form of punctuation.)</p>
3171-
31723166
<p>In determining the position and thickness of text decoration lines,
31733167
user agents may consider the font sizes and dominant baselines of
31743168
descendants, but for a given element's decoration must use the same
@@ -3481,7 +3475,7 @@ <h4 id="text-decoration-skip">
34813475
</tr>
34823476
<tr>
34833477
<th>Value:</th>
3484-
<td>none | [ objects || spaces || ink ]
3478+
<td>none | [ objects || spaces || ink || edges ]
34853479
</td>
34863480
</tr>
34873481
<tr>
@@ -3535,6 +3529,12 @@ <h4 id="text-decoration-skip">
35353529
line to let text show through where the text decoration would
35363530
otherwise cross over a glyph. The UA may also skip a small
35373531
distance to either side of the glyph outline.</dd>
3532+
<dt><dfn title="text-decoration-skip:edges">edges</dfn></dt>
3533+
<dd>The UA should place the start and end of the line inwards from
3534+
the content edge of the decorating element so that, e.g. two
3535+
underlined elements side-by-side do not appear to have a single
3536+
underline. (This is important in Chinese, where underlining is a
3537+
form of punctuation.)</dd>
35383538
</dl>
35393539

35403540
<p class="issue">Do we need a value that <em>doesn't</em> skip
@@ -4248,6 +4248,8 @@ <h2 class="no-num" id="traditions">Appendix C: Cultural Correlations</h2>
42484248
<td>Western, South Asian
42494249
<tr><td>'line-break'
42504250
<td>CJK (Japanese)
4251+
<tr><td>'text-decoration-skip': ''edges''
4252+
<td>CJK
42514253
<tr><td>'text-justify': ''inter-cluster''
42524254
<td>Southeast Asian
42534255
<tr><td>'text-justify': ''inter-ideograph'', ''distribute''

0 commit comments

Comments
 (0)