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

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