Re: [css3-syntax] More changes from CSS 2.1 Core Grammar

Le 30/01/2013 05:58, Tab Atkins Jr. a écrit :
> The last item, I'm not sure about.  It would be trivial to support
> style rules with empty selectors, actually - I'd just have to change
> top-level mode and rule-block mode to recognize it, instead of
> treating it like a syntax error as they currently do.  I think I
> didn't realize it was allowed by 2.1's Core Grammar.

I don’t know if it really matters. An empty selector is definitely 
invalid, and style rules with invalid selectors don’t show up in CSSOM, 
right?

I’d say pick whatever makes Syntax simpler.

-- 
Simon Sapin

Received on Wednesday, 30 January 2013 06:23:06 UTC