W3C home > Mailing lists > Public > www-style@w3.org > February 2016

[css-counter-styles] Any chance of requiring a -- prefix on the names?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Feb 2016 13:42:33 -0800
Message-ID: <CAAWBYDDMVLExoCibMfW5sKzvyD3DiwbgYrJTcRMYA2UxiXz7gg@mail.gmail.com>
To: www-style list <www-style@w3.org>
I noted in a recent thread that the allowed name syntax for
@counter-style rules was a mistake - allowing them to fill the same
namespace as normal keywords meant I have to keep an (updated) list of
disallowed keywords, and do some funky things in the spec to handle
collisions with existing names.  If I'd written the spec today, I'd
have required that the name be a <custom-ident> and start with --, so
it's easily distinguishable from anything else.

Currently, only Firefox implements @counter-style, but it's been
implemented since v33 afaict.  Does anyone (Xidorn?) know the usage
here, and is able to comment on whether such a change would be

Alternately, would the group be okay with changing the syntax to
<custom-ident>, even if Firefox has to, for legacy reasons, support
the wider syntax for some period of time (possibly indefinitely)?

Received on Tuesday, 23 February 2016 21:43:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:00 UTC