On Jun 6, 2006, at 6:19 PM, Alex Robinson wrote: > Well, depending on how you want to treat Opera 9 (it's been in beta > for a while now), you could use something along the lines of > > http://www.fu2k.org/alex/css/hacks/fuzzyspecificity
your last test case (C) could be made to work in Opera 9. Instead of using :root, go for a CSS3 attribute selector; those are not supported by O8. body #op8-hook-id[id^="op8-hook-id"] {background:lime} (I know. Looks a bit ugly, but then good hacks are not pretty, and it avoids relying on a possibly non-existing parent selector) That would cover Gecko, Safari, iCab, Konqueror, even IE11..., in case any of these support media queries but not the :root selector. As for IE 7, in your test case: A. red B. red C. blue PS - my <http://dev.l-c-n.com/CSS3-selectors/browser-support.php> is supposed to be correct. Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- 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/