@@ -162,9 +162,11 @@ Defining Custom Counter Styles: the ''@counter-style'' rule</h2>
162
162
that is not an <a>ASCII case-insensitive</a> match for "none".
163
163
The <<counter-style-name>> is a [=tree-scoped name=] .
164
164
165
- Additionally, in the context of the prelude of an ''@counter-style'' rule,
166
- an <a>ASCII case-insensitive</a> match for "decimal" or "disc" is also an invalid <<counter-style-name>>
167
- and makes the ''@counter-style'' rule invalid.
165
+ The keywords ''decimal'' , ''disc'' , ''square'' , ''circle'' , ''disclosure-open'' , and ''disclosure-closed''
166
+ are valid <<counter-style-name>> s,
167
+ but are invalid when used here to name a counter style rule;
168
+ doing so makes the rule invalid.
169
+ (They can be used in other contexts, such as in the ''extend'' system.)
168
170
169
171
Note: Note that <<custom-ident>> also automatically excludes the <a spec=css-values>CSS-wide keywords</a> .
170
172
In addition, some names, like ''inside'' ,
@@ -701,10 +703,17 @@ Building from Existing Counter Styles: the ''extends'' system
701
703
any unspecified descriptors must be taken from the extended counter style specified,
702
704
rather than taking their initial values.
703
705
704
- If a @counter-style uses the ''extends'' system,
706
+ If a '' @counter-style'' uses the ''extends'' system,
705
707
it must not contain a 'symbols' or 'additive-symbols' descriptor,
706
708
or else the ''@counter-style'' rule is invalid.
707
709
710
+ If the specified <<counter-style-name>> is an [=ASCII case-insensitive=] match
711
+ for ''disc'' , ''circle'' , ''square'' , ''disclosure-open'' , or ''disclosure-closed''
712
+ (any of the predefined symbolic counter styles),
713
+ using ''extend'' extends from the “standard” definition of the rules
714
+ provided in the normative stylesheet
715
+ (rather than the exception allowing them to be drawn in a different, user-agent-specific fashion.)
716
+
708
717
If the specified counter style name isn't the name of any defined counter style,
709
718
it must be treated as if it was extending the ''decimal'' counter style.
710
719
If one or more ''@counter-style'' rules form a cycle with their ''extends'' values,
@@ -1462,9 +1471,6 @@ Numeric: ''decimal'', ''decimal-leading-zero'', ''arabic-indic'', ''armenian'',
1462
1471
(e.g., ༡, ༢, ༣, ..., ༩༨, ༩༩, ༡༠༠).
1463
1472
</dl>
1464
1473
1465
- The ''decimal'' counter-style must not be overridable with a ''@counter-style'' rule,
1466
- so that it is always available as the ultimate fallback style.
1467
-
1468
1474
The following stylesheet fragment provides the normative definition of these predefined counter styles:
1469
1475
1470
1476
<pre class='stylesheet'><bdo dir=ltr>
@@ -1765,9 +1771,6 @@ Symbolic: ''disc'', ''circle'', ''square'', ''disclosure-open'', ''disclosure-cl
1765
1771
such as the HTML <{details}> element.
1766
1772
</dl>
1767
1773
1768
- The ''disc'' counter-style must not be overridable with a ''@counter-style'' rule,
1769
- so that the initial value of 'list-style-type' is well-known to the user agent.
1770
-
1771
1774
The following stylesheet fragment provides the normative definition of these predefined counter styles:
1772
1775
1773
1776
<pre class='stylesheet'>
0 commit comments