Skip to content

Commit a249c2e

Browse files
committed
[csswg] [css-lists][css-counter-styles] Per WG resolution, spacing between marker and content should be handled by the counter style suffix.
1 parent 5197f78 commit a249c2e

2 files changed

Lines changed: 19 additions & 25 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Cycling Symbols: the ''cyclic'' system</h4>
227227
@counter-style <dfn noexport>triangle</dfn> {
228228
system: cyclic;
229229
symbols: ‣;
230-
suffix: "";
230+
suffix: " ";
231231
}
232232
</pre>
233233

@@ -274,7 +274,7 @@ Exhaustible Symbols: the ''fixed'' system</h4>
274274
@counter-style <dfn noexport>box-corner</dfn> {
275275
system: fixed;
276276
symbols: ◰ ◳ ◲ ◱;
277-
suffix: ':';
277+
suffix: ': ';
278278
}
279279
</pre>
280280

@@ -321,7 +321,7 @@ Repeating Symbols: the ''symbolic'' system</h4>
321321
@counter-style <dfn noexport>footnote</dfn> {
322322
system: symbolic;
323323
symbols: '*' ⁑ † ‡;
324-
suffix: "";
324+
suffix: " ";
325325
}
326326
</pre>
327327

@@ -401,7 +401,7 @@ Bijective Numerals: the <a value for=system>alphabetic</a> system</h4>
401401
@counter-style <dfn noexport>go</dfn> {
402402
system: alphabetic;
403403
symbols: url(white.svg) url(black.svg);
404-
suffix: "";
404+
suffix: " ";
405405
}
406406
</pre>
407407

@@ -528,19 +528,19 @@ Accumulating Numerals: the ''additive'' system</h4>
528528
@counter-style <dfn noexport>dice</dfn> {
529529
system: additive;
530530
additive-symbols: 6 ⚅, 5 ⚄, 4 ⚃, 3 ⚂, 2 ⚁, 1 ⚀;
531-
suffix: "";
531+
suffix: " ";
532532
}
533533
</pre>
534534

535535
It will then produce lists that look like:
536536

537537
<pre>
538-
One
539-
Two
540-
Three
538+
One
539+
Two
540+
Three
541541
...
542-
⚅⚄ Eleven
543-
⚅⚅ Twelve
542+
⚅⚄ Eleven
543+
⚅⚅ Twelve
544544
⚅⚅⚀ Thirteen
545545
</pre>
546546
</div>
@@ -665,7 +665,7 @@ Symbols after the marker: the 'suffix' descriptor</h3>
665665
Name: suffix
666666
For: @counter-style
667667
Value: <<symbol>>
668-
Initial: "\2E" ("." full stop)
668+
Initial: "\2E\20" ("." full stop followed by a space)
669669
</pre>
670670

671671
The 'suffix' descriptor specifies a <<symbol>> that is appended to the
@@ -952,7 +952,7 @@ Speech Synthesis: the 'speak-as' descriptor</h3>
952952
system: alphabetic;
953953
speak-as: lower-latin;
954954
symbols: ⓐ ⓑ ⓒ ⓓ ⓔ ⓕ ⓖ ⓗ ⓘ ⓙ ⓚ ⓛ ⓜ ⓝ ⓞ ⓟ ⓠ ⓡ ⓢ ⓣ ⓤ ⓥ ⓦ ⓧ ⓨ ⓩ;
955-
suffix: "";
955+
suffix: " ";
956956
}
957957
</pre>
958958

@@ -980,7 +980,8 @@ Defining Anonymous Counter Styles: the ''symbols()'' function</h2>
980980

981981
The ''symbols()'' function defines an anonymous counter style
982982
with no name,
983-
a 'prefix' and 'suffix' of ''""'' (the empty string),
983+
a 'prefix' of ''""'' (empty string)
984+
and 'suffix' of ''" "'' (U+0020 SPACE),
984985
a 'range' of <a value for=range>auto</a>,
985986
a 'fallback' of ''decimal'',
986987
a 'negative' of ''"\2D"'' ("-" hyphen-minus),
@@ -1316,32 +1317,32 @@ Symbolic: ''disc'', ''circle'', ''square'', ''disclosure-open'', ''disclosure-cl
13161317
system: cyclic;
13171318
symbols: \2022;
13181319
/* • */
1319-
suffix: "";
1320+
suffix: " ";
13201321
}
13211322

13221323
@counter-style circle {
13231324
system: cyclic;
13241325
symbols: \25E6;
13251326
/* ◦ */
1326-
suffix: "";
1327+
suffix: " ";
13271328
}
13281329

13291330
@counter-style square {
13301331
system: cyclic;
13311332
symbols: \25FE;
13321333
/* ◾ */
1333-
suffix: "";
1334+
suffix: " ";
13341335
}
13351336

13361337
@counter-style disclosure-open {
13371338
system: cyclic;
1338-
suffix: "";
1339+
suffix: " ";
13391340
/* for symbols, see normative text below */
13401341
}
13411342

13421343
@counter-style disclosure-closed {
13431344
system: cyclic;
1344-
suffix: "";
1345+
suffix: " ";
13451346
/* for symbols, see normative text below */
13461347
}
13471348
</pre>

css-lists/Overview.bs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,13 +1353,6 @@ Sample style sheet for HTML</h2>
13531353
unicode-bidi: isolate;
13541354
/* 'position' computes to "static" or "marker" depending on list-style-position */
13551355
}
1356-
1357-
li:dir(ltr)::marker {
1358-
margin-right: 1em;
1359-
}
1360-
li:dir(rtl)::marker {
1361-
margin-left: 1em;
1362-
}
13631356
</pre>
13641357

13651358

0 commit comments

Comments
 (0)