Philippe Wittenbergh wrote: > On Jun 30, 2007, at 5:51 AM, Bruno Fassino wrote: [...] >> 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>
Yes! I'm always unsure about IE behavior in these cases, since it's not always consistent. For example, an extra comma at the end of a selectors list does not cause the whole rule to be ignored (someone uses this as an hack.) Also, an unsupported/non-existent pseudo class/element (like p:last-child, or p:qq) doesn't cause the whole block do be skipped in IE, while good browsers seem to do this. Bruno -- Bruno Fassino http://www.brunildo.org/test ______________________________________________________________________ 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/