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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 27 Jan 2008 16:00:33 -0800
To: Anne van Kesteren <annevk@opera.com>
Cc: Justin Rogers <justrog@microsoft.com>, Brad Kemper <brkemper@comcast.net>, "www-style@w3.org Style" <www-style@w3.org>
Message-ID: <20080128000033.GA30243@ridley.dbaron.org>

On Monday 2008-01-28 00:53 +0100, Anne van Kesteren wrote:
>
> 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.)

Could you explain why the } doesn't close the @media block?  It
seems to me like it should.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 28 January 2008 00:01:07 GMT

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