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

On Tue, 23 Feb 2016 22:42:33 +0100, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> 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
> feasible?
>
> 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)?

Searching on github...

"counter-style"; only 322 code results
https://github.com/search?l=css&q="counter-style"&type=Code&utf8=✓

Compare with:

"counter-reset"; 123,608 code results
https://github.com/search?l=css&q="counter-reset"&ref=searchresults&type=Code&utf8=✓
http://caniuse.com/#feat=css-counters

"mix-blend-mode"; 53,950 code results
https://github.com/search?utf8=✓&q="mix-blend-mode"&type=Code&ref=searchresults
http://caniuse.com/#feat=css-mixblendmode

"viewport width device-width"; > 1,015,420 code results (search took too  
long to finish)
https://github.com/search?utf8=✓&q="viewport+width+device-width"&type=Code&ref=searchresults
http://caniuse.com/#feat=css-deviceadaptation

"text-side-adjust"; 64,988 code results
https://github.com/search?l=css&q="text-size-adjust"&ref=searchresults&type=Code&utf8=✓
http://caniuse.com/#feat=text-size-adjust

-- 
Simon Pieters
Opera Software

Received on Tuesday, 8 March 2016 18:32:22 UTC