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: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 9 Mar 2016 16:25:13 -0500
To: Marat Tanalin <mtanalin@yandex.ru>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <56E094B9.2040004@inkedblade.net>
On 03/08/2016 03:27 PM, Marat Tanalin wrote:
> 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. ;-)

CSS consistently uses undifferentiated identifiers for such things.
The only exception here so far has been CSS variables. Maybe it's
not great, but so far the cases we have are not particularly harmful,
and there are a lot of them.

~fantasai
Received on Wednesday, 9 March 2016 21:25:45 UTC

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