Skip to content

Commit 0e9f439

Browse files
committed
Added identifiers as a valid counter symbol.
1 parent 799cd0d commit 0e9f439

2 files changed

Lines changed: 16 additions & 48 deletions

File tree

css3-lists/Overview.html

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525

2626
<h1>CSS Lists and Counters Module Level 3</h1>
2727

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 November
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 30 November
2929
2011</h2>
3030

3131
<dl>
3232
<dt>This version:
3333

34-
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-lists-20111128">http://www.w3.org/TR/2011/WD-css3-lists-20111128</a></dd>-->
34+
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-lists-20111130">http://www.w3.org/TR/2011/WD-css3-lists-20111130</a></dd>-->
3535
<a
3636
href="http://dev.w3.org/csswg/css3-lists/">http://dev.w3.org/csswg/css3-lists/</a>
3737

@@ -2236,7 +2236,7 @@ <h3 id=counter-style-symbols><span class=secno>8.7. </span> Marker
22362236
<tr>
22372237
<th>Value:
22382238

2239-
<td>[ &lt;string> | &lt;image> ]+
2239+
<td>[ &lt;string> | &lt;image> | &lt;identifier> ]+
22402240

22412241
<tr>
22422242
<th>Initial:
@@ -2254,7 +2254,7 @@ <h3 id=counter-style-symbols><span class=secno>8.7. </span> Marker
22542254
<tr>
22552255
<th>Value:
22562256

2257-
<td>[ &lt;integer> && [ &lt;string> | &lt;image> ] ]#
2257+
<td>[ &lt;integer> && [ &lt;string> | &lt;image> | &lt;identifier> ] ]#
22582258

22592259
<tr>
22602260
<th>Initial:
@@ -2270,9 +2270,8 @@ <h3 id=counter-style-symbols><span class=secno>8.7. </span> Marker
22702270
&lsquo;<a href="#descdef-type"><code class=property>type</code></a>&rsquo;
22712271
descriptor. The &lsquo;<a href="#descdef-symbols"><code
22722272
class=property>symbols</code></a>&rsquo; descriptor must be specified if
2273-
the counter type is &lsquo;<code class=css>repeating</code>&rsquo;,
2274-
<i>numeric</i>, <i>alphabetic</i>, <i>symbolic</i>, or
2275-
<i>non-repeating</i>, and the &lsquo;<a
2273+
the counter type is <i>repeating</i>, <i>numeric</i>, <i>alphabetic</i>,
2274+
<i>symbolic</i>, or <i>non-repeating</i>, and the &lsquo;<a
22762275
href="#descdef-additive-symbols"><code
22772276
class=property>additive-symbols</code></a>&rsquo; descriptor must be
22782277
specified if the counter type is <i>additive</i>; otherwise, the
@@ -2298,27 +2297,13 @@ <h3 id=counter-style-symbols><span class=secno>8.7. </span> Marker
22982297
order of descending weight; otherwise, the @counter-style is invalid and
22992298
must be ignored.
23002299

2301-
<p>Counter symbols may be strings or images, and the two types can be mixed
2302-
in a single descriptor. Counter representations are constructed by
2303-
concatenating counter symbols together. Image counter symbols are rendered
2304-
as inline replaced elements. The <a
2300+
<p>Counter symbols may be strings, images, or identifiers, and the three
2301+
types can be mixed in a single descriptor. Counter representations are
2302+
constructed by concatenating counter symbols together. Identifiers are
2303+
rendered as strings containing the same characters. Images are rendered as
2304+
inline replaced elements. The <a
23052305
href="http://dev.w3.org/csswg/css3-images/#default-object-size">default
2306-
object size</a> of an image counter symbol is a 1em by 1em square.
2307-
2308-
<div class=issue>
2309-
<p>It's been requested that there be a way to express lists with lots of
2310-
single-character symbols in a more compact way, something like e.g.:</p>
2311-
2312-
<pre>
2313-
@counter-style decimal {
2314-
type: numeric;
2315-
symbols: combined "0123456789";
2316-
}</pre>
2317-
2318-
<p>This does reduce the verbosity of a lot of styles, but I'm somewhat
2319-
concerned about being forced to deal with "graphemes" instead of
2320-
"characters". Is this reasonable?</p>
2321-
</div>
2306+
object size</a> of an image counter symbol is a 1em by 1em square.</p>
23222307
<!-- ====================================================================== -->
23232308

23242309
<h2 id=symbols-function><span class=secno>9. </span> Defining Anonymous

css3-lists/Overview.src.html

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ <h3 id='counter-style-symbols'>
15031503
<td><dfn id="descdef-symbols">symbols</dfn>
15041504
<tr>
15051505
<th>Value:
1506-
<td>[ &lt;string> | &lt;image> ]+
1506+
<td>[ &lt;string> | &lt;image> | &lt;identifier> ]+
15071507
<tr>
15081508
<th>Initial:
15091509
<td>N/A
@@ -1515,15 +1515,15 @@ <h3 id='counter-style-symbols'>
15151515
<td><dfn id="descdef-additive-symbols">additive-symbols</dfn>
15161516
<tr>
15171517
<th>Value:
1518-
<td>[ &lt;integer> && [ &lt;string> | &lt;image> ] ]#
1518+
<td>[ &lt;integer> && [ &lt;string> | &lt;image> | &lt;identifier> ] ]#
15191519
<tr>
15201520
<th>Initial:
15211521
<td>N/A
15221522
</table>
15231523

15241524
<p>The 'symbols' and 'additive-symbols' descriptors specify the characters
15251525
used by the marker-construction algorithm specified by the 'type' descriptor.
1526-
The 'symbols' descriptor must be specified if the counter type is ''repeating'',
1526+
The 'symbols' descriptor must be specified if the counter type is <i>repeating</i>,
15271527
<i>numeric</i>, <i>alphabetic</i>, <i>symbolic</i>, or <i>non-repeating</i>, and the
15281528
'additive-symbols' descriptor must be specified if the counter type is
15291529
<i>additive</i>; otherwise, the @counter-style is invalid and must be ignored.</p>
@@ -1541,24 +1541,7 @@ <h3 id='counter-style-symbols'>
15411541
must be specified in order of descending weight; otherwise, the @counter-style
15421542
is invalid and must be ignored.</p>
15431543

1544-
<p>Counter symbols may be strings or images, and the two types can be mixed
1545-
in a single descriptor. Counter representations are constructed by concatenating
1546-
counter symbols together. Image counter symbols are rendered as inline replaced
1547-
elements. The
1548-
<a href="http://dev.w3.org/csswg/css3-images/#default-object-size">default object size</a>
1549-
of an image counter symbol is a 1em by 1em square.</p>
1550-
1551-
<div class='issue'>
1552-
<p>It's been requested that there be a way to express lists with lots of single-character symbols in a more compact way, something like e.g.:</p>
1553-
1554-
<pre>
1555-
@counter-style decimal {
1556-
type: numeric;
1557-
symbols: combined "0123456789";
1558-
}</pre>
1559-
1560-
<p>This does reduce the verbosity of a lot of styles, but I'm somewhat concerned about being forced to deal with "graphemes" instead of "characters". Is this reasonable?</p>
1561-
</div>
1544+
<p>Counter symbols may be strings, images, or identifiers, and the three types can be mixed in a single descriptor. Counter representations are constructed by concatenating counter symbols together. Identifiers are rendered as strings containing the same characters. Images are rendered as inline replaced elements. The <a href="http://dev.w3.org/csswg/css3-images/#default-object-size">default object size</a> of an image counter symbol is a 1em by 1em square.</p>
15621545

15631546

15641547
<!-- ====================================================================== -->

0 commit comments

Comments
 (0)