Skip to content

Commit 697852f

Browse files
SimonSapintabatkins
authored andcommitted
[css-counter-styles] Exclude 'none' from <counter-style-name> (#1326)
… in all contexts, not just `@counter-style` rules.
1 parent 9e9b038 commit 697852f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

css-counter-styles/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ Defining Custom Counter Styles: the ''@counter-style'' rule</h2>
152152

153153
<pre>@counter-style <<counter-style-name>> { <<declaration-list>> }</pre>
154154

155-
where <dfn>&lt;counter-style-name></dfn> is a <<custom-ident>>.
155+
<dfn>&lt;counter-style-name></dfn> is a <<custom-ident>>
156+
that is not an <a>ASCII case-insensitive</a> match for "none".
156157

157-
If a counter style's name is an <a>ASCII case-insensitive</a> match for "decimal" or "none",
158-
the ''@counter-style'' rule is invalid.
158+
Additionally, in the context of the prelude of an ''@counter-style'' rule,
159+
an <a>ASCII case-insensitive</a> match for "decimal" is also an invalid <<counter-style-name>>
160+
and makes the ''@counter-style'' rule invalid.
159161

160162
Note: Note that <<custom-ident>> also automatically excludes the <a spec=css-values>CSS-wide keywords</a>.
161163
In addition, some names, like ''inside'',

0 commit comments

Comments
 (0)