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

On Tue, Jan 29, 2013 at 10:22 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> 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.

Per WG rough-agreement-or-apathy, I've changed it so that a style rule
with an empty selector is allowed.

~TJ

Received on Thursday, 31 January 2013 20:22:40 UTC