forked from w3c/csswg-drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOverview.html
More file actions
1294 lines (938 loc) · 43.6 KB
/
Overview.html
File metadata and controls
1294 lines (938 loc) · 43.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>CSS Text Decoration Module Level 4</title>
<meta content="exploring" name="csswg-work-status">
<meta content="UD" name="w3c-status">
<link href="../default.css" rel="stylesheet" type="text/css">
<link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
<link href="https://www.w3.org/StyleSheets/TR/w3c-unofficial" rel="stylesheet" type="text/css">
<meta content="Bikeshed 1.0.0" name="generator">
<style>/* http://prismjs.com/download.html?themes=prism&languages=clike */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', monospace;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important {
font-weight: bold;
}
.token.entity {
cursor: help;
}
</style>
</head>
<body class="h-entry">
<div class="head">
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/">
<img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72">
</a>
</p>
<h1 class="p-name no-ref" id="title">CSS Text Decoration Module Level 4</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Unofficial Proposal Draft,
<time class="dt-updated" datetime="2015-06-09">9 June 2015</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
<dd><a class="u-url" href="http://dev.w3.org/csswg/css-text-decor-4/">http://dev.w3.org/csswg/css-text-decor-4/</a>
<dt>Latest version:
<dd><a href="http://www.w3.org/TR/css-text-decor-4/">http://www.w3.org/TR/css-text-decor-4/</a>
<dt>Feedback:
<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>
<dt>Issue Tracking:
<dd><a href="https://github.com/frivoal/csswg-drafts/issues/">GitHub</a>
<dd><a href="#issues-index">Inline In Spec</a>
<dd><span><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a></span>
<dt class="editor">Editors:
<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>)
<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>)
</dl>
</div>
<div data-fill-with="warning"></div>
<p class="copyright" data-fill-with="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2015 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
</p>
<hr title="Separator for header">
</div>
<h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
<div class="p-summary" data-fill-with="abstract">
<p>This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.</p>
<a href="http://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, in speech, etc.</div>
<h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
<div data-fill-with="status"></div>
<div data-fill-with="at-risk"></div>
<h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="content">Table of Contents</span></h2>
<div data-fill-with="table-of-contents" role="navigation">
<ul class="toc" role="directory">
<li><a href="#intro"><span class="secno">1</span> <span class="content">Things To Include Here</span></a>
<li><a href="#extend"><span class="secno">2</span> <span class="content">Extentions to L3 features</span></a>
<ul class="toc">
<li><a href="#text-decoration-skip-property"><span class="secno">2.1</span> <span class="content">
Text Decoration Line Continuity: the <span class="property">text-decoration-skip</span> property</span></a>
</ul>
<li><a href="#temp"><span class="secno">3</span> <span class="content">Rescued L3 Brainstorming: Ignore For Now</span></a>
<ul class="toc">
<li><a href="#text-emphasis-skip"><span class="secno">3.1</span> <span class="content">
Emphasis Mark Skip: the <span class="property">text-emphasis-skip</span> property</span></a>
</ul>
<li><a href="#conformance"><span class="secno"></span> <span class="content">
Conformance</span></a>
<ul class="toc">
<li><a href="#conventions"><span class="secno"></span> <span class="content">
Document conventions</span></a>
<li><a href="#conformance-classes"><span class="secno"></span> <span class="content">
Conformance classes</span></a>
<li><a href="#partial"><span class="secno"></span> <span class="content">
Partial implementations</span></a>
<li><a href="#experimental"><span class="secno"></span> <span class="content">
Experimental implementations</span></a>
<li><a href="#testing"><span class="secno"></span> <span class="content">
Non-experimental implementations</span></a>
</ul>
<li><a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
<ul class="toc">
<li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
<li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
</ul>
<li><a href="#references"><span class="secno"></span> <span class="content">References</span></a>
<ul class="toc">
<li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
</ul>
<li><a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a>
<li><a href="#issues-index"><span class="secno"></span> <span class="content">Issues Index</span></a>
</ul></div>
<main>
<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.
It has no status at W3C and has not yet been discussed by the CSSWG.</p>
<h2 class="heading settled" data-level="1" id="intro"><span class="secno">1. </span><span class="content">Things To Include Here</span><a class="self-link" href="#intro"></a></h2>
<p>In addition to all of the features in Level 3, a completed initial draft of this module will include:</p>
<ul>
<li>text-shadow with spread
<li>fill/stroke on text
<li>a text-decoration-offset property
<li>a text-line-width property
</ul>
<h2 class="heading settled" data-level="2" id="extend"><span class="secno">2. </span><span class="content">Extentions to L3 features</span><a class="self-link" href="#extend"></a></h2>
<h3 class="heading settled" data-level="2.1" id="text-decoration-skip-property"><span class="secno">2.1. </span><span class="content">
Text Decoration Line Continuity: the <a class="property" data-link-type="propdesc" href="#propdef-text-decoration-skip">text-decoration-skip</a> property</span><a class="self-link" href="#text-decoration-skip-property"></a></h3>
<p>This specification extends the <a class="property" data-link-type="propdesc" href="#propdef-text-decoration-skip">text-decoration-skip</a> property
present in level 3
by adding the <a class="css" data-link-type="maybe" href="#valdef-text-decoration-skip-trailing-spaces">trailing-spaces</a> value.</p>
<table class="definition propdef" data-link-for-hint="text-decoration-skip">
<tbody>
<tr>
<th>Name:
<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>
<tr class="value">
<th>Value:
<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> ]
<tr>
<th>Initial:
<td>objects leading-spaces trailing-spaces
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>yes
<tr>
<th>Percentages:
<td>N/A
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>as specified
<tr>
<th>Animatable:
<td>no</table>
<p class="note" role="note">Note: The initial value is different
from the one specified at the previous level,
which was only <a class="css" data-link-type="propdesc" href="#propdef-text-decoration-skip">text-decoration-skip: objects</a>.</p>
<p class="issue" id="issue-319cbf30"><a class="self-link" href="#issue-319cbf30"></a> The initial value is quite verbose,
which makes it inconvenient to set the property
to the initial value plus something else.
We should make this easier to specify.</p>
<p class="issue" id="issue-e782977b"><a class="self-link" href="#issue-e782977b"></a> Add final level 3 content</p>
<dl>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-none">none<a class="self-link" href="#valdef-text-decoration-skip-none"></a></dfn>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-objects">objects<a class="self-link" href="#valdef-text-decoration-skip-objects"></a></dfn>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-spaces">spaces<a class="self-link" href="#valdef-text-decoration-skip-spaces"></a></dfn>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-ink">ink<a class="self-link" href="#valdef-text-decoration-skip-ink"></a></dfn>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-edges">edges<a class="self-link" href="#valdef-text-decoration-skip-edges"></a></dfn>
<dt><dfn class="css" data-dfn-for="text-decoration-skip" data-dfn-type="value" data-export="" id="valdef-text-decoration-skip-box-decoration">box-decoration<a class="self-link" href="#valdef-text-decoration-skip-box-decoration"></a></dfn>
<dd>
<p class="issue" id="issue-e782977b0"><a class="self-link" href="#issue-e782977b0"></a> Add final level 3 content</p>
<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>
<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>
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>
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>,
when located at the start of the line.
<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>
<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>
and all <a href="http://www.w3.org/TR/css3-text/#word-separator">word separators</a>
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>,
when located at the end of the line.
</dl>
<p>The following addition are made to the default UA stylesheet for HTML:</p>
<pre><code class="lang-css">ins, del { text-decoration-skip: none; }
</code></pre>
<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>
<h3 class="heading settled" data-level="3.1" id="text-emphasis-skip"><span class="secno">3.1. </span><span class="content">
Emphasis Mark Skip: the <a class="property" data-link-type="propdesc" href="#propdef-text-emphasis-skip">text-emphasis-skip</a> property</span><a class="self-link" href="#text-emphasis-skip"></a></h3>
<p class="issue" id="issue-064596ad"><a class="self-link" href="#issue-064596ad"></a>This section is under brainstorming.
It’s also not yet clear if this property is needed quite yet, despite differences in desired behavior among publications.
</p>
<table class="propdef">
<tbody>
<tr>
<th>Name:
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-text-emphasis-skip">text-emphasis-skip<a class="self-link" href="#propdef-text-emphasis-skip"></a></dfn>
<tr>
<th>Value:
<td>spaces ||
punctuation ||
symbols ||
narrow
<tr>
<th>Initial:
<td>spaces
<tr>
<th>Applies to:
<td>all elements
<tr>
<th>Inherited:
<td>yes
<tr>
<th>Percentages:
<td>N/A
<tr>
<th>Media:
<td>visual
<tr>
<th>Computed value:
<td>as specified
</table>
<p>This property describes for which characters marks are drawn.
The values have following meanings:</p>
<dl for="text-emphasis-skip" type="value">
<dt><dfn data-dfn-type="dfn" data-noexport="" id="spaces">spaces<a class="self-link" href="#spaces"></a></dfn>
<dd>
Skip <a href="http://www.w3.org/TR/css-text/#word-separator">Word separators</a> or characters
belonging to the Unicode separator category (Z*).
(But note that emphasis marks <em>are</em> drawn for a space
that combines with any combining characters.)
<dt><dfn data-dfn-type="dfn" data-noexport="" id="punctuation">punctuation<a class="self-link" href="#punctuation"></a></dfn>
<dd>
Skip punctuation.
Punctuation in this definition includes characters belonging to
the Unicode Pc, Pd, Ps, Pe, Pi, or Pf categories.
It also includes characters where the Unicode category is Po and
the Sentence_Break property <a data-link-type="biblio" href="#biblio-uax29">[UAX29]</a> of the Unicode database
<a data-link-type="biblio" href="#biblio-uax44">[UAX44]</a> is ATerm, Close, SContinue, or STerm.
<dt><dfn data-dfn-type="dfn" data-noexport="" id="symbols">symbols<a class="self-link" href="#symbols"></a></dfn>
<dd>Skip symbols.
Symbols in this definition includes characters belonging to
the Unicode S* category.
It also includes the Unicode Po category
that are not defined as <span class="css">punctuation</span> above.
<dt><dfn data-dfn-type="dfn" data-noexport="" id="narrow">narrow<a class="self-link" href="#narrow"></a></dfn>
<dd>Skip characters where the East_Asian_Width property <a data-link-type="biblio" href="#biblio-uax11">[UAX11]</a>
of the Unicode database <a data-link-type="biblio" href="#biblio-uax44">[UAX44]</a> is not F (Fullwidth) or W (Wide).
</dl>
<p>Characters belonging to the Unicode classes for control codes
and unassigned characters (Cc, Cf, Cn) are skipped
regardless of the value of this property.</p>
<p class="issue" id="issue-509ba68a"><a class="self-link" href="#issue-509ba68a"></a>This syntax requires UA to implement drawing marks for spaces.
Is there any use case for doing so?
If not, should we modify the syntax not to allow drawing marks for spaces?
</p>
</main>
<h2 class="no-ref no-num heading settled" id="conformance"><span class="content">
Conformance</span><a class="self-link" href="#conformance"></a></h2>
<h3 class="no-ref heading settled" id="conventions"><span class="content">
Document conventions</span><a class="self-link" href="#conventions"></a></h3>
<p>Conformance requirements are expressed with a combination of
descriptive assertions and RFC 2119 terminology. The key words "MUST",
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this
document are to be interpreted as described in RFC 2119.
However, for readability, these words do not appear in all uppercase
letters in this specification.
</p>
<p>All of the text of this specification is normative except sections
explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119">[RFC2119]</a></p>
<p>Examples in this specification are introduced with the words "for example"
or are set apart from the normative text with <code>class="example"</code>,
like this:
</p>
<div class="example" id="example-f839f6c8"><a class="self-link" href="#example-f839f6c8"></a>
<p>This is an example of an informative example.</p>
</div>
<p>Informative notes begin with the word "Note" and are set apart from the
normative text with <code>class="note"</code>, like this:
</p>
<p class="note" role="note">Note, this is an informative note.</p>
<p>Advisements are normative sections styled to evoke special attention and are
set apart from other normative text with <code><strong class="advisement"></code>, like
this:
<strong class="advisement">
UAs MUST provide an accessible alternative.
</strong>
</p>
<h3 class="no-ref heading settled" id="conformance-classes"><span class="content">
Conformance classes</span><a class="self-link" href="#conformance-classes"></a></h3>
<p>Conformance to this specification
is defined for three conformance classes:
</p>
<dl>
<dt>style sheet
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS
style sheet</a>.
<dt>renderer
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a>
that interprets the semantics of a style sheet and renders
documents that use them.
<dt>authoring tool
<dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a>
that writes a style sheet.
</dl>
<p>A style sheet is conformant to this specification
if all of its statements that use syntax defined in this module are valid
according to the generic CSS grammar and the individual grammars of each
feature defined in this module.
</p>
<p>A renderer is conformant to this specification
if, in addition to interpreting the style sheet as defined by the
appropriate specifications, it supports all the features defined
by this specification by parsing them correctly
and rendering the document accordingly. However, the inability of a
UA to correctly render a document due to limitations of the device
does not make the UA non-conformant. (For example, a UA is not
required to render color on a monochrome monitor.)
</p>
<p>An authoring tool is conformant to this specification
if it writes style sheets that are syntactically correct according to the
generic CSS grammar and the individual grammars of each feature in
this module, and meet all other conformance requirements of style sheets
as described in this module.
</p>
<h3 class="no-ref heading settled" id="partial"><span class="content">
Partial implementations</span><a class="self-link" href="#partial"></a></h3>
<p>So that authors can exploit the forward-compatible parsing rules to
assign fallback values, CSS renderers <strong>must</strong>
treat as invalid (and <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignore
as appropriate</a>) any at-rules, properties, property values, keywords,
and other syntactic constructs for which they have no usable level of
support. In particular, user agents <strong>must not</strong> selectively
ignore unsupported component values and honor supported values in a single
multi-value property declaration: if any value is considered invalid
(as unsupported values must be), CSS requires that the entire declaration
be ignored.</p>
<h3 class="no-ref heading settled" id="experimental"><span class="content">
Experimental implementations</span><a class="self-link" href="#experimental"></a></h3>
<p>To avoid clashes with future CSS features, the CSS2.1 specification
reserves a <a href="http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords">prefixed
syntax</a> for proprietary and experimental extensions to CSS.
</p>
<p>Prior to a specification reaching the Candidate Recommendation stage
in the W3C process, all implementations of a CSS feature are considered
experimental. The CSS Working Group recommends that implementations
use a vendor-prefixed syntax for such features, including those in
W3C Working Drafts. This avoids incompatibilities with future changes
in the draft.
</p>
<h3 class="no-ref heading settled" id="testing"><span class="content">
Non-experimental implementations</span><a class="self-link" href="#testing"></a></h3>
<p>Once a specification reaches the Candidate Recommendation stage,
non-experimental implementations are possible, and implementors should
release an unprefixed implementation of any CR-level feature they
can demonstrate to be correctly implemented according to spec.
</p>
<p>To establish and maintain the interoperability of CSS across
implementations, the CSS Working Group requests that non-experimental
CSS renderers submit an implementation report (and, if necessary, the
testcases used for that implementation report) to the W3C before
releasing an unprefixed implementation of any CSS features. Testcases
submitted to W3C are subject to review and correction by the CSS
Working Group.
</p>
<p>Further information on submitting testcases and implementation reports
can be found from on the CSS Working Group’s website at
<a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
Questions should be directed to the
<a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a>
mailing list.
</p>
<h2 class="no-num heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
<h3 class="no-num heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
<ul class="indexlist">
<li>box-decoration, <a href="#valdef-text-decoration-skip-box-decoration">2.1</a>
<li>edges, <a href="#valdef-text-decoration-skip-edges">2.1</a>
<li>ink, <a href="#valdef-text-decoration-skip-ink">2.1</a>
<li>leading-spaces, <a href="#valdef-text-decoration-skip-leading-spaces">2.1</a>
<li>narrow, <a href="#narrow">3.1</a>
<li>none, <a href="#valdef-text-decoration-skip-none">2.1</a>
<li>objects, <a href="#valdef-text-decoration-skip-objects">2.1</a>
<li>punctuation, <a href="#punctuation">3.1</a>
<li>spaces
<ul>
<li>value for text-decoration-skip, <a href="#valdef-text-decoration-skip-spaces">2.1</a>
<li>definition of, <a href="#spaces">3.1</a>
</ul>
<li>symbols, <a href="#symbols">3.1</a>
<li>text-decoration-skip, <a href="#propdef-text-decoration-skip">2.1</a>
<li>text-emphasis-skip, <a href="#propdef-text-emphasis-skip">3.1</a>
<li>trailing-spaces, <a href="#valdef-text-decoration-skip-trailing-spaces">2.1</a>
</ul>
<h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
<ul class="indexlist">
<li><a data-link-type="biblio" href="#biblio-css-text-3">[css-text-3]</a> defines the following terms:
<ul>
<li><a href="http://dev.w3.org/csswg/css-text-3/#propdef-letter-spacing">letter-spacing</a>
<li><a href="http://dev.w3.org/csswg/css-text-3/#propdef-word-spacing">word-spacing</a>
</ul>
<li><a data-link-type="biblio" href="#biblio-css-values-3">[css-values-3]</a> defines the following terms:
<ul>
<li><a href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a>
<li><a href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a>
</ul>
</ul>
<h2 class="no-num heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
<h3 class="no-num heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
<dl>
<dt id="biblio-uax11"><a class="self-link" href="#biblio-uax11"></a>[UAX11]
<dd>Asmus Freytag. <a href="http://www.unicode.org/unicode/reports/tr11/tr11-8.html">East Asian Width</a>. 23 March 2001. Unicode Standard Annex #11. URL: <a href="http://www.unicode.org/unicode/reports/tr11/tr11-8.html">http://www.unicode.org/unicode/reports/tr11/tr11-8.html</a>
<dt id="biblio-uax29"><a class="self-link" href="#biblio-uax29"></a>[UAX29]
<dd>Mark Davis. <a href="http://www.unicode.org/unicode/reports/tr29/tr29-9.html">Text Boundaries</a>. 25 March 2005. Unicode Standard Annex #29. URL: <a href="http://www.unicode.org/unicode/reports/tr29/tr29-9.html">http://www.unicode.org/unicode/reports/tr29/tr29-9.html</a>
<dt id="biblio-uax44"><a class="self-link" href="#biblio-uax44"></a>[UAX44]
<dd>Mark Davis; Ken Whistler. <a href="http://www.unicode.org/reports/tr44/">Unicode Character Database</a>. 25 September 2013. URL: <a href="http://www.unicode.org/reports/tr44/">http://www.unicode.org/reports/tr44/</a>
<dt id="biblio-css-text-3"><a class="self-link" href="#biblio-css-text-3"></a>[CSS-TEXT-3]
<dd>Elika Etemad; Koji Ishii. <a href="http://www.w3.org/TR/css-text-3/">CSS Text Module Level 3</a>. 10 October 2013. LCWD. URL: <a href="http://www.w3.org/TR/css-text-3/">http://www.w3.org/TR/css-text-3/</a>
<dt id="biblio-css-values-3"><a class="self-link" href="#biblio-css-values-3"></a>[CSS-VALUES-3]
<dd>CSS Values and Units Module Level 3 URL: <a href="http://www.w3.org/TR/css3-values/">http://www.w3.org/TR/css3-values/</a>
<dt id="biblio-rfc2119"><a class="self-link" href="#biblio-rfc2119"></a>[RFC2119]
<dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
</dl>
<h2 class="no-num heading settled" id="property-index"><span class="content">Property Index</span><a class="self-link" href="#property-index"></a></h2>
<table class="proptable data">
<thead>
<tr>
<th scope="col">Name
<th scope="col">Value
<th scope="col">Initial
<th scope="col">Applies to
<th scope="col">Inh.
<th scope="col">%ages
<th scope="col">Media
<th scope="col">Animatable
<th scope="col">Computed value
<th scope="col">Computed value
<tbody>
<tr>
<th scope="row"><a class="css" data-link-type="property" href="#propdef-text-decoration-skip">text-decoration-skip</a>
<td>none | [ objects || [ spaces | [ leading-spaces || trailing-space ] ] || ink || edges || box-decoration ]
<td>objects leading-spaces trailing-spaces
<td>all elements
<td>yes
<td>N/A
<td>visual
<td>no
<td>as specified
<td>
<tr>
<th scope="row"><a class="css" data-link-type="property" href="#propdef-text-emphasis-skip">text-emphasis-skip</a>
<td>spaces ||
punctuation ||
symbols ||
narrow
<td>spaces
<td>all elements
<td>yes
<td>N/A
<td>visual
<td>
<td>
<td>as specified
</table>
<h2 class="no-num heading settled" id="issues-index"><span class="content">Issues Index</span><a class="self-link" href="#issues-index"></a></h2>
<div style="counter-reset:issue">
<div class="issue"> This is just a place to keep ideas at the moment.
It has no status at W3C and has not yet been discussed by the CSSWG.<a href="#issue-54832a4b"> ↵ </a></div>
<div class="issue"> The initial value is quite verbose,
which makes it inconvenient to set the property
to the initial value plus something else.
We should make this easier to specify.<a href="#issue-319cbf30"> ↵ </a></div>
<div class="issue"> Add final level 3 content<a href="#issue-e782977b"> ↵ </a></div>
<div class="issue"> Add final level 3 content<a href="#issue-e782977b0"> ↵ </a></div>
<div class="issue">This section is under brainstorming.
It’s also not yet clear if this property is needed quite yet, despite differences in desired behavior among publications.
<a href="#issue-064596ad"> ↵ </a></div>
<div class="issue">This syntax requires UA to implement drawing marks for spaces.
Is there any use case for doing so?
If not, should we modify the syntax not to allow drawing marks for spaces?
<a href="#issue-509ba68a"> ↵ </a></div>
</div>
<script>self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
: {} // if in node js
);
/**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.org/licenses/mit-license.php/
* @author Lea Verou http://lea.verou.me
*/
var Prism = (function(){
// Private helper vars
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
var _ = self.Prism = {
util: {
encode: function (tokens) {
if (tokens instanceof Token) {
return new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);
} else if (_.util.type(tokens) === 'Array') {
return tokens.map(_.util.encode);
} else {
return tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\u00a0/g, ' ');
}
},
type: function (o) {
return Object.prototype.toString.call(o).match(/\[object (\w+)\]/)[1];
},
// Deep clone a language definition (e.g. to extend it)
clone: function (o) {
var type = _.util.type(o);
switch (type) {
case 'Object':
var clone = {};
for (var key in o) {
if (o.hasOwnProperty(key)) {
clone[key] = _.util.clone(o[key]);
}
}
return clone;
case 'Array':
return o.slice();
}
return o;
}
},
languages: {
extend: function (id, redef) {
var lang = _.util.clone(_.languages[id]);
for (var key in redef) {
lang[key] = redef[key];
}
return lang;
},
// Insert a token before another token in a language literal
insertBefore: function (inside, before, insert, root) {
root = root || _.languages;
var grammar = root[inside];
var ret = {};
for (var token in grammar) {
if (grammar.hasOwnProperty(token)) {
if (token == before) {
for (var newToken in insert) {
if (insert.hasOwnProperty(newToken)) {
ret[newToken] = insert[newToken];
}
}
}
ret[token] = grammar[token];
}
}
return root[inside] = ret;
},
// Traverse a language definition with Depth First Search
DFS: function(o, callback, type) {
for (var i in o) {
if (o.hasOwnProperty(i)) {
callback.call(o, i, o[i], type || i);
if (_.util.type(o[i]) === 'Object') {
_.languages.DFS(o[i], callback);
} else if (_.util.type(o[i]) === 'Array') {
_.languages.DFS(o[i], callback, i);
}
}
}
}
},
highlightAll: function(async, callback) {
var elements = document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');
for (var i=0, element; element = elements[i++];) {
if (element.classList.contains("idl")) {
// Bikeshed handles IDL blocks already.
continue;
}
_.highlightElement(element, async === true, callback);
}
var elements = document.querySelectorAll('pre[class*="language-"], [class*="language-"] pre, pre[class*="lang-"], [class*="lang-"] pre');
for (var i=0, element; element = elements[i++];) {
if (element.firstElementChild && element.firstElementChild.tagName.toLowerCase() == "code") {
// Already handled by the previous loop
continue;
}
if (element.classList.contains("idl")) {
// Bikeshed handles IDL blocks already.
continue;
}
_.highlightElement(element, async === true, callback);
}
},
highlightElement: function(element, async, callback) {
// Find language
var language, grammar, parent = element;
while (parent && !lang.test(parent.className)) {
parent = parent.parentNode;
}
if (parent) {
language = (parent.className.match(lang) || [,''])[1];
grammar = _.languages[language];
}
if (!grammar) {
return;
}
// Set language on the element, if not present
element.className = element.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
// Set language on the parent, for styling
parent = element.parentNode;
if (/pre/i.test(parent.nodeName)) {
parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
}
var code = element.textContent;