Skip to content

Commit b3ffe1a

Browse files
committed
Added an issue about Hakon's suggestion for a shorthand version of @counter-style.
1 parent 7ce1eba commit b3ffe1a

2 files changed

Lines changed: 44 additions & 2 deletions

File tree

css3-lists/Overview.html

Lines changed: 26 additions & 2 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 3 November
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 15 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-20111103">http://www.w3.org/TR/2011/WD-css3-lists-20111103</a></dd>-->
34+
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-lists-20111115">http://www.w3.org/TR/2011/WD-css3-lists-20111115</a></dd>-->
3535
<a
3636
href="http://dev.w3.org/csswg/css3-lists/">http://dev.w3.org/csswg/css3-lists/</a>
3737

@@ -1463,6 +1463,30 @@ <h2 id=counter-style><span class=secno>8. </span> Defining Custom Counter
14631463
be "decimal", "default", "inherit", "initial", "inside", "none", or
14641464
"outside"; otherwise the @counter-style is invalid and must be ignored.
14651465

1466+
<div class=issue>
1467+
<p>Hakon suggests adding a shorthand version of @counter-style that just
1468+
takes a name and a set of glyphs, and automatically treats them as a
1469+
symbolic style (similar to the defaults for symbols()). In other words,
1470+
saying something like this:</p>
1471+
1472+
<pre>@counter-style footnotes "*" "+" "-";</pre>
1473+
1474+
<p>would be identical to this:</p>
1475+
1476+
<pre>
1477+
@counter-style footnotes {
1478+
type: symbolic;
1479+
glyphs: "*" "+" "-";
1480+
}</pre>
1481+
1482+
<p>I'm not sure if this is necessary, but I'm not against it either. I'd
1483+
probably also allow an "as &lt;type>" tacked on at the end, so it's
1484+
basically just the contents of the symbols() function. Hell, maybe even
1485+
just use the symbols() function directly, like:</p>
1486+
1487+
<pre>@counter-style footnotes symbols("*" "+" "-" as repeating);</pre>
1488+
</div>
1489+
14661490
<h3 id=counter-style-type><span class=secno>8.1. </span> Counter
14671491
algorithms: the &lsquo;<a href="#descdef-type"><code
14681492
class=property>type</code></a>&rsquo; descriptor</h3>

css3-lists/Overview.src.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,24 @@ <h2 id='counter-style'>
889889
"inside", "none", or "outside"; otherwise the @counter-style is invalid and
890890
must be ignored.</p>
891891

892+
<div class='issue'>
893+
<p>Hakon suggests adding a shorthand version of @counter-style that just takes a name and a set of glyphs, and automatically treats them as a symbolic style (similar to the defaults for symbols()). In other words, saying something like this:</p>
894+
895+
<pre>@counter-style footnotes "*" "+" "-";</pre>
896+
897+
<p>would be identical to this:</p>
898+
899+
<pre>
900+
@counter-style footnotes {
901+
type: symbolic;
902+
glyphs: "*" "+" "-";
903+
}</pre>
904+
905+
<p>I'm not sure if this is necessary, but I'm not against it either. I'd probably also allow an "as &lt;type>" tacked on at the end, so it's basically just the contents of the symbols() function. Hell, maybe even just use the symbols() function directly, like:</p>
906+
907+
<pre>@counter-style footnotes symbols("*" "+" "-" as repeating);</pre>
908+
</div>
909+
892910
<h3 id='counter-style-type'>
893911
Counter algorithms: the 'type' descriptor</h3>
894912

0 commit comments

Comments
 (0)