On Jun 30, 2007, at 5:51 AM, Bruno Fassino wrote:

> You have in this sheet
>   index.php? 
> title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=te
> xt/css&smaxage=18000
> groups of selectors like
>   div#p-navigation.portlet li a,
>   div.portlet[id="p-Zeno.org"] li a,
>   div#p-tb.portlet li a
>
> IE 6 does not understand the second selector and seems to ignore  
> the whole
> rule including it.

IE 6 is actually correct in doing that.
It encounters a selector that it doesn't understand (div.portlet 
[id="p-Zeno.org"] li a) and treat it as invalid. In that case, the  
CSS grammar is quite clear: the whole block should be ignored.
see <http://www.w3.org/TR/CSS21/syndata.html#q10>

(the 'bug' here is that IE6 doesn't support the attribute selector -  
one that is part of CSS2.1)

Safari1.3 and 2 would do the same thing
.xyz, h1~p {color:white; background:lime}
will be ignored by Safari 2.0 (and IE 6), as it doesn't understand  
the '~' selector (general sibling combinator).

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to