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/