W3C home > Mailing lists > Public > www-style@w3.org > January 2013

[css3-syntax] @media screen;

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Mon, 21 Jan 2013 16:13:05 +0100
Message-ID: <50FD5B01.8040001@kozea.fr>
To: "www-style@w3.org" <www-style@w3.org>

In 3.5.3. At-rule-prelude mode, a semicolon pops the current rule 
unconditionally. I think it should trigger a parse error for rule-filled 
or declaration-filled at-rules, just like { does for at-rules that are 
neither rule-filled or declaration-filled.

For example, these produce the same tree per the current ED:

     @media screen;
     @media screen{}

They should not. The former is a parse error, the rule is ignored (and 
does not show up later in CSSOM.)

Simon Sapin
Received on Monday, 21 January 2013 15:13:28 UTC

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