Skip to content

Commit 053a5f5

Browse files
committed
[css-text-decor-4] Add ''leading-spaces''
1 parent e0779aa commit 053a5f5

2 files changed

Lines changed: 59 additions & 31 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ by adding the ''trailing-spaces'' value.
4040

4141
<pre class="propdef">
4242
Name: text-decoration-skip
43-
Value: ''none'' | [ ''objects'' || [ ''spaces'' | ''trailing-spaces'' ] || ''ink'' || ''edges'' || ''box-decoration'' ]
43+
Value: ''none'' | [ ''objects'' || [ ''spaces'' | [ ''leading-spaces'' || ''trailing-space'' ] ] || ''ink'' || ''edges'' || ''box-decoration'' ]
4444
Initial: objects
4545
Applies to: all elements
4646
Inherited: yes
@@ -62,11 +62,16 @@ by adding the ''trailing-spaces'' value.
6262
<dd>
6363

6464
Issue: Add final level 3 content
65+
<dt><dfn>leading-spaces</dfn></dt>
66+
<dd>Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property [[UAX44]]
67+
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
68+
plus any adjacent 'letter-spacing' or 'word-spacing'
69+
when located at the start of the line.
6570
<dt><dfn>trailing-spaces</dfn></dt>
6671
<dd>Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property [[UAX44]]
6772
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
6873
plus any adjacent 'letter-spacing' or 'word-spacing'
69-
when located then end of the line.
74+
when located at the end of the line.
7075
</dl>
7176

7277
Issue: Should ''object trailing-spaces'' be the initial value instead of just ''object''?
@@ -75,11 +80,6 @@ by adding the ''trailing-spaces'' value.
7580
''object'' and ''object trailing-spaces''
7681
depending on properties like 'white-space', 'word-wrap', 'word-break' etc?
7782

78-
Issue: Should we have a ''leading-spaces'' value as well?
79-
It looks like ''object leading-spaces'' may be more appropriate than
80-
''object trailing-spaces'' in right-aligned text,
81-
even though common word processing applications don't do that.
82-
8383
<h2 id=temp>Rescued L3 Brainstorming: Ignore For Now</h2>
8484

8585
<h3 id="text-emphasis-skip">

css-text-decor-4/Overview.html

Lines changed: 52 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<title>CSS Text Decoration Module Level 4</title>
99

1010

11+
<meta content="exploring" name="csswg-work-status">
12+
13+
1114
<link href="../default.css" rel="stylesheet" type="text/css">
1215

1316

@@ -33,7 +36,7 @@
3336
<h1 class="p-name no-ref" id="title">CSS Text Decoration Module Level 4</h1>
3437

3538
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Unofficial Proposal Draft,
36-
<time class="dt-updated" datetime="2015-05-13">13 May 2015</time></span></h2>
39+
<time class="dt-updated" datetime="2015-06-04">4 June 2015</time></span></h2>
3740

3841
<div data-fill-with="spec-metadata">
3942
<dl>
@@ -42,13 +45,34 @@ <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="cont
4245
<dt>Latest version:
4346
<dd><a href="http://www.w3.org/TR/css-text-decor-4/">http://www.w3.org/TR/css-text-decor-4/</a>
4447
<dt>Feedback:
45-
<dd><span><a href="mailto:www-style@w3.org?subject=%5Bcss-text-decor%5D%20feedback">www-style@w3.org</a> with subject line “<kbd>[css-text-decor] <var>… message topic …</var></kbd>” (<a href="http://lists.w3.org/Archives/Public/www-style/" rel="discussion">archives</a>)</span>
48+
<dd><span><a href="mailto:www-style@w3.org?subject=%5Bcss-text-decor%5D%20YOUR%20TOPIC%20HERE">www-style@w3.org</a> with subject line “<kbd>[css-text-decor] <var>… message topic …</var></kbd>” (<a href="http://lists.w3.org/Archives/Public/www-style/" rel="discussion">archives</a>)</span>
4649
<dt>Issue Tracking:
50+
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
51+
<dd><a href="#issues-index">Inline In Spec</a>
52+
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
53+
<dd><a href="#issues-index">Inline In Spec</a>
54+
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
4755
<dd><a href="#issues-index">Inline In Spec</a>
56+
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
57+
<dd><a href="#issues-index">Inline In Spec</a>
58+
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
59+
<dd><a href="#issues-index">Inline In Spec</a>
60+
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
61+
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
62+
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
63+
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
4864
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
4965
<dt class="editor">Editors:
5066
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">fantasai</a> (<span class="p-org org">Invited Expert</span>)
5167
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (<span class="p-org org">Invited Expert</span>)
68+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">fantasai</a> (<span class="p-org org">Invited Expert</span>)
69+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (<span class="p-org org">Invited Expert</span>)
70+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">fantasai</a> (<span class="p-org org">Invited Expert</span>)
71+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (<span class="p-org org">Invited Expert</span>)
72+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">fantasai</a> (<span class="p-org org">Invited Expert</span>)
73+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (<span class="p-org org">Invited Expert</span>)
74+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">fantasai</a> (<span class="p-org org">Invited Expert</span>)
75+
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (<span class="p-org org">Invited Expert</span>)
5276
</dl>
5377
</div>
5478

@@ -64,7 +88,12 @@ <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="cont
6488
<h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
6589

6690
<div class="p-summary" data-fill-with="abstract">
67-
<p>This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.</p>
91+
<p>This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.
92+
93+
This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.
94+
This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.
95+
This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.
96+
This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.</p>
6897

6998
<a href="http://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
7099
(such as HTML and XML)
@@ -126,7 +155,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
126155

127156

128157

129-
<p class="issue" id="issue-54832a4b"><a class="self-link" href="#issue-54832a4b"></a>This is just a place to keep ideas at the moment.
158+
<p class="issue" id="issue-54832a4b"><a class="self-link" href="#issue-54832a4b"></a> This is just a place to keep ideas at the moment.
130159
It has no status at W3C and has not yet been discussed by the CSSWG.</p>
131160

132161

@@ -168,7 +197,7 @@ <h3 class="heading settled" data-level="2.1" id="text-decoration-skip-property">
168197
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-text-decoration-skip">text-decoration-skip<a class="self-link" href="#propdef-text-decoration-skip"></a></dfn>
169198
<tr class="value">
170199
<th>Value:
171-
<td class="prod"><a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-none">none</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> [ <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-objects">objects</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> [ <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-spaces">spaces</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-trailing-spaces">trailing-spaces</a> ] <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-ink">ink</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-edges">edges</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-box-decoration">box-decoration</a> ]
200+
<td class="prod"><a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-none">none</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> [ <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-objects">objects</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> [ <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-spaces">spaces</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> [ <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-leading-spaces">leading-spaces</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <span class="css">trailing-space</span> ] ] <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-ink">ink</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-edges">edges</a> <a data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a> <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-box-decoration">box-decoration</a> ]
172201
<tr>
173202
<th>Initial:
174203
<td>objects
@@ -192,7 +221,7 @@ <h3 class="heading settled" data-level="2.1" id="text-decoration-skip-property">
192221
<td>no</table>
193222

194223

195-
<p class="issue" id="issue-e782977b"><a class="self-link" href="#issue-e782977b"></a>Add final level 3 content</p>
224+
<p class="issue" id="issue-e782977b"><a class="self-link" href="#issue-e782977b"></a> Add final level 3 content</p>
196225

197226

198227
<dl>
@@ -217,33 +246,35 @@ <h3 class="heading settled" data-level="2.1" id="text-decoration-skip-property">
217246
<dd>
218247

219248

220-
<p class="issue" id="issue-e782977b0"><a class="self-link" href="#issue-e782977b0"></a>Add final level 3 content</p>
249+
<p class="issue" id="issue-e782977b0"><a class="self-link" href="#issue-e782977b0"></a> Add final level 3 content</p>
221250

222251

252+
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-leading-spaces">leading-spaces<a class="self-link" href="#valdef-text-decoration-skip-leading-spaces"></a></dfn>
253+
254+
255+
<dd>Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property <a data-link-type="biblio" href="#biblio-uax44">[UAX44]</a>
256+
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
257+
plus any adjacent <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-letter-spacing">letter-spacing</a> or <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-spacing">word-spacing</a>
258+
when located at the start of the line.
259+
223260
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-trailing-spaces">trailing-spaces<a class="self-link" href="#valdef-text-decoration-skip-trailing-spaces"></a></dfn>
224261

225262

226263
<dd>Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property <a data-link-type="biblio" href="#biblio-uax44">[UAX44]</a>
227264
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
228265
plus any adjacent <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-letter-spacing">letter-spacing</a> or <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-spacing">word-spacing</a>
229-
when located then end of the line.
266+
when located at the end of the line.
230267

231268
</dl>
232269

233270

234-
<p class="issue" id="issue-ca502b15"><a class="self-link" href="#issue-ca502b15"></a>Should <span class="css">object trailing-spaces</span> be the initial value instead of just <span class="css">object</span>?
271+
<p class="issue" id="issue-ca502b15"><a class="self-link" href="#issue-ca502b15"></a> Should <span class="css">object trailing-spaces</span> be the initial value instead of just <span class="css">object</span>?
235272
Should the initial value be auto,
236273
defined so that that it can vary between
237274
<span class="css">object</span> and <span class="css">object trailing-spaces</span>
238275
depending on properties like <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-white-space">white-space</a>, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-wrap">word-wrap</a>, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-break">word-break</a> etc?</p>
239276

240277

241-
<p class="issue" id="issue-936c69b9"><a class="self-link" href="#issue-936c69b9"></a>Should we have a <span class="css">leading-spaces</span> value as well?
242-
It looks like <span class="css">object leading-spaces</span> may be more appropriate than
243-
<span class="css">object trailing-spaces</span> in right-aligned text,
244-
even though common word processing applications don’t do that.</p>
245-
246-
247278
<h2 class="heading settled" data-level="3" id="temp"><span class="secno">3. </span><span class="content">Rescued L3 Brainstorming: Ignore For Now</span><a class="self-link" href="#temp"></a></h2>
248279

249280

@@ -573,6 +604,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
573604
<li>box-decoration, <a href="#valdef-text-decoration-skip-box-decoration">2.1</a>
574605
<li>edges, <a href="#valdef-text-decoration-skip-edges">2.1</a>
575606
<li>ink, <a href="#valdef-text-decoration-skip-ink">2.1</a>
607+
<li>leading-spaces, <a href="#valdef-text-decoration-skip-leading-spaces">2.1</a>
576608
<li>narrow, <a href="#narrow">3.1</a>
577609
<li>none, <a href="#valdef-text-decoration-skip-none">2.1</a>
578610
<li>objects, <a href="#valdef-text-decoration-skip-objects">2.1</a>
@@ -636,7 +668,7 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
636668
<tbody>
637669
<tr>
638670
<th scope="row"><a class="css" data-link-type="property" href="#propdef-text-decoration-skip">text-decoration-skip</a>
639-
<td>none | [ objects || [ spaces | trailing-spaces ] || ink || edges || box-decoration ]
671+
<td>none | [ objects || [ spaces | [ leading-spaces || trailing-space ] ] || ink || edges || box-decoration ]
640672
<td>objects
641673
<td>all elements
642674
<td>yes
@@ -662,19 +694,15 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
662694
</table>
663695
<h2 class="no-num heading settled" id="issues-index"><span class="content">Issues Index</span><a class="self-link" href="#issues-index"></a></h2>
664696
<div style="counter-reset:issue">
665-
<div class="issue">This is just a place to keep ideas at the moment.
697+
<div class="issue"> This is just a place to keep ideas at the moment.
666698
It has no status at W3C and has not yet been discussed by the CSSWG.<a href="#issue-54832a4b"></a></div>
667-
<div class="issue">Add final level 3 content<a href="#issue-e782977b"></a></div>
668-
<div class="issue">Add final level 3 content<a href="#issue-e782977b0"></a></div>
669-
<div class="issue">Should <span class="css">object trailing-spaces</span> be the initial value instead of just <span class="css">object</span>?
699+
<div class="issue"> Add final level 3 content<a href="#issue-e782977b"></a></div>
700+
<div class="issue"> Add final level 3 content<a href="#issue-e782977b0"></a></div>
701+
<div class="issue"> Should <span class="css">object trailing-spaces</span> be the initial value instead of just <span class="css">object</span>?
670702
Should the initial value be auto,
671703
defined so that that it can vary between
672704
<span class="css">object</span> and <span class="css">object trailing-spaces</span>
673705
depending on properties like <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-white-space">white-space</a>, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-wrap">word-wrap</a>, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-text-3/#propdef-word-break">word-break</a> etc?<a href="#issue-ca502b15"></a></div>
674-
<div class="issue">Should we have a <span class="css">leading-spaces</span> value as well?
675-
It looks like <span class="css">object leading-spaces</span> may be more appropriate than
676-
<span class="css">object trailing-spaces</span> in right-aligned text,
677-
even though common word processing applications don’t do that.<a href="#issue-936c69b9"></a></div>
678706
<div class="issue">This section is under brainstorming.
679707
It’s also not yet clear if this property is needed quite yet, despite differences in desired behavior among publications.
680708

0 commit comments

Comments
 (0)