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

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

From: Marat Tanalin <mtanalin@yandex.ru>
Date: Tue, 08 Mar 2016 23:27:20 +0300
To: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <1402101457468840@web25m.yandex.ru>
24.02.2016, 00:46, "Tab Atkins Jr." <jackalmage@gmail.com>:
> the allowed name syntax for @counter-style rules was a mistake -
> [...]
> 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.

I believe _any_ user-defined identifier should be in a namespace different from predefined-keywords' namespace -- either by using quoted strings or (if strings are unhelpful for specific feature) by adding a prefix.

As for @counter-style in particular, it's better late than never. Given that there is just one implementation, just add the prefix. And try not to make this mistake anymore with future new CSS features involving user-defined identifiers. ;-)
Received on Tuesday, 8 March 2016 20:27:53 UTC

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