Skip to content

Commit 650aa35

Browse files
committed
Call out 'decimal' as being defined specially, since it would be a syntax error to simply define it in the UA stylesheet.
1 parent 48f16aa commit 650aa35

2 files changed

Lines changed: 26 additions & 11 deletions

File tree

css3-lists/Overview.html

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,12 +2368,6 @@ <h2 id=predefined-counters><span class=secno>10. </span> Predefined Counter
23682368
which can be copied into an author's stylesheet.</span>
23692369

23702370
<pre style="white-space: pre-wrap;"><bdo>
2371-
@counter-style <dfn
2372-
id=decimal>decimal</dfn> {
2373-
type: numeric;
2374-
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
2375-
}
2376-
23772371
@counter-style <dfn
23782372
id=decimal-leading-zero>decimal-leading-zero</dfn> {
23792373
type: non-repeating -9;
@@ -2492,6 +2486,24 @@ <h2 id=predefined-counters><span class=secno>10. </span> Predefined Counter
24922486
<dd>A filled square, similar to ◾ U+25FE BLACK MEDIUM SMALL SQUARE.
24932487
</dl>
24942488

2489+
<p>Finally, UAs must define a &lsquo;<a href="#decimal"><code
2490+
class=property>decimal</code></a>&rsquo; style with behavior matching the
2491+
following stylesheet fragment, as if it were defined by a &lsquo;<code
2492+
class=css>@counter-style</code>&rsquo; rule in the UA stylesheet. <span
2493+
class=note>This style is defined specially because naming a counter style
2494+
&lsquo;<a href="#decimal"><code class=css>decimal</code></a>&rsquo; is a
2495+
syntax error, so it can't actually be defined just by including it in the
2496+
UA stylesheet. This restriction exists so that &lsquo;<a
2497+
href="#decimal"><code class=css>decimal</code></a>&rsquo; is always
2498+
present as a valid fallback type, regardless of what an author or user
2499+
defines in their own stylesheets.</span>
2500+
2501+
<pre>
2502+
@counter-style <dfn id=decimal>decimal</dfn> {
2503+
type: numeric;
2504+
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
2505+
}</pre>
2506+
24952507
<p class=issue>Do we need to predefine the styles that are present in CSS2
24962508
but didn't make it to CSS2.1? They're all present in the "Additional
24972509
Predefined Counter Styles" document.

css3-lists/Overview.src.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,11 +1598,6 @@ <h2 id='predefined-counters'>
15981598
<p>In addition to the 2.1 counter styles, a large number of additional counter styles are defined in the <a href="//dev.w3.org/csswg/css-counter-styles">Additional Predefined Counter Styles for CSS</a> document. The majority of the additional counter styles are additional alphabetic or numeric styles for various world languages. <span class='note'>The normative status of that document is currently undecided, but at minimum it provides a large resource of counter styles which can be copied into an author's stylesheet.</span></p>
15991599

16001600
<pre style="white-space: pre-wrap;"><bdo>
1601-
@counter-style <dfn>decimal</dfn> {
1602-
type: numeric;
1603-
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
1604-
}
1605-
16061601
@counter-style <dfn>decimal-leading-zero</dfn> {
16071602
type: non-repeating -9;
16081603
symbols: '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09';
@@ -1695,6 +1690,14 @@ <h2 id='predefined-counters'>
16951690
<dd>A filled square, similar to ◾ U+25FE BLACK MEDIUM SMALL SQUARE.</dd>
16961691
</dl>
16971692

1693+
<p>Finally, UAs must define a 'decimal' style with behavior matching the following stylesheet fragment, as if it were defined by a ''@counter-style'' rule in the UA stylesheet. <span class='note'>This style is defined specially because naming a counter style ''decimal'' is a syntax error, so it can't actually be defined just by including it in the UA stylesheet. This restriction exists so that ''decimal'' is always present as a valid fallback type, regardless of what an author or user defines in their own stylesheets.</span></p>
1694+
1695+
<pre>
1696+
@counter-style <dfn>decimal</dfn> {
1697+
type: numeric;
1698+
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
1699+
}</pre>
1700+
16981701
<p class='issue'>Do we need to predefine the styles that are present in CSS2 but didn't make it to CSS2.1? They're all present in the "Additional Predefined Counter Styles" document.</p>
16991702

17001703

0 commit comments

Comments
 (0)