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

Re: [CSS 2.1] General at-blocks and error recovery

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 28 Jan 2008 00:53:19 +0100
To: "Justin Rogers" <justrog@microsoft.com>, "Brad Kemper" <brkemper@comcast.net>, "www-style@w3.org Style" <www-style@w3.org>
Message-ID: <op.t5l4m5d464w2qv@annevk-t60.oslo.opera.com>

On Sun, 27 Jan 2008 22:40:24 +0100, Justin Rogers <justrog@microsoft.com>  
wrote:
> -- Most interesting of Brad's additional test cases
> @media all { /* open scope +1 */
>   @ /* invalid token, go into selector error recovery which looks for a  
> block */
> } /* close scope from @media */
>
> Because of the last scope closure, it ends the error recovery started at  
> the invalid @ symbol (read as IMHO I think it should end the error  
> recovery since others can certainly beg to differ). All subsequent rules  
> after it should be parsed normally so I would say the DIV should be  
> green.

No. } is part of the bogus selector, it does not close the @media block.  
(You can replace @ with "x", etc., fwiw.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Sunday, 27 January 2008 23:50:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:00 GMT