[csswg-drafts] [css-counter-styles] Exclude 'none' from <counter-style-name>

SimonSapin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-counter-styles] Exclude 'none' from <counter-style-name> ==
https://drafts.csswg.org/css-counter-styles/#typedef-counter-style-name
> The general form of an `@counter-style` rule is:
>
> ```css
> @counter-style <counter-style-name> { <declaration-list> }
> ```
>
> where `<counter-style-name>` is a `<custom-ident>`.
> If a counter style’s name is an ASCII case-insensitive match for "decimal" or "none", the `@counter-style` rule is invalid.

We’ve clarified in #1285 that the last sentence only applies to at-rules, and not other uses of `<counter-style-name>`. This makes sense for `decimal` which is a style that always exists (it just can’t be overridden). Allowing `none` however is useless since it can’t ever refer to an existing counter style.

I suggest changing the spec to make `none` (ASCII-case-insensitive) an invalid value of `<counter-style-name>` in all contexts, like CSS-wide keywords already are.

CC @upsuper, @tabatkins 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1295 using your GitHub account

Received on Wednesday, 26 April 2017 03:36:57 UTC