W3C home > Mailing lists > Public > www-style@w3.org > December 2007

Re: [CSS2.1] Parsing Selectors with Brackets

From: see <csad7@t-online.de>
Date: Wed, 26 Dec 2007 15:08:33 +0100
Message-ID: <47726061.2020807@gmail.com>
To: www-style@w3.org
CC: Anne van Kesteren <annevk@opera.com>, fantasai <fantasai.lists@inkedblade.net>, Bjoern Hoehrmann <derhoermi@gmx.net>

Anne van Kesteren wrote:
> 
> On Wed, 26 Dec 2007 09:36:00 +0100, Anne van Kesteren <annevk@opera.com> 
> wrote:
>> On Wed, 26 Dec 2007 06:38:11 +0100, fantasai 
>> <fantasai.lists@inkedblade.net> wrote:
>>>   p { color: orange; }
>>>   p ( { color: red; } p { background: blue; } )
>>>
>>> Is the paragraph orange or blue?
>>
>> Didn't Björn answer that? I tested that in Opera, Firefox, and IE and 
>> the second line got dropped in all of them leaving 'p { color: orange; 
>> }'.
> 
> My mistake, IE7 shows a blue background. But it was already established 
> in a parallel thread that it has some minor issues with this.

question is also when the CSS starts working again:

     p { color: green; }
     p ( { color: red; } p { background: blue; } )
     i { color: red}
     b { color: green}

should IMHO (Firefox does it like this, I have no Safari available) be 
parsed as:

p {
     color: green
     }
b {
     color: green
     }

but gives in JIGSAW same as in IE and Opera 9.25 (just tested it again) 
falsely:

p {
color : green;
}
p {
background : blue;
}
b {
color : green;
}

which is the right one now?

Christof
Received on Wednesday, 26 December 2007 14:08:44 GMT

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