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

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 UTC