- From: Christof Hoeke <csad7@t-online.de>
- Date: Sun, 04 Nov 2007 13:41:19 +0100
- To: www-style@w3.org
Boris Zbarsky wrote:
>
> Christof Hoeke wrote:
>> I have the following CSS
>>
>> a {x:1}
>> }
>> b{y:2}
>> c{z:3}
>>
>> The specification says (as I remember) that if an error is found it is
>> resolved with the next valid block.
>
> Yes.
>
>> So I thought the CSS above should be equivalent to:
>>
>> a {x:1}
>> c{z:3}
>
> Yes.
>
>> Browsers on the other hand seem to simple remove the "}" and the CSS
>> would be equivalent to
>
> Which "browsers" would that be? I just Opera 9, Gecko (1.9 alpha, but
> this behavior hasn't changed since at least 1.7), and khtml (Konqueror
> 3.5.3, but I'd be willing to bet they haven't changed this since) and
> they all do what you thought they should.
oops, my fault. I had a complex sheet with this error and thought "b" is
actually used. I did a simple test page which shows that actually most
browsers (I tested additionally FF 2.0.0.9, IE 5-7) see "b" as invalid
and ignore it.
thanks
chris
Received on Sunday, 4 November 2007 12:41:41 UTC