On Oct 22, 2007, at 6:27 PM, Alan Gresley wrote: > How crazy the world of hacking CSS is. While working on part of my > site on pages that have the xml prolog preceding the doctype, I was > hacking for IE7 and noticed that Opera was also being targeted. > After stripping my stylesheet down to a few lines, I then removed > the xml prolog from the page and found that Opera was showing as > expected and not being targeted anymore. Now having done some test > [1], I find that there are IE7 only targeting hacks, Opera only > targeting hacks and targeting hacks for both browsers when using > the xml prolog. > > *+html - target IE 7 and Opera 9.10 and 9.24 > *~html - target IE 7 and Opera 9.10 and 9.24 > *:first-child+html - target IE 7 > html:first-child - target Opera 9.10 and 9.24 > *+html:first-child - target Opera 9.10 and 9.24
Yeah, a while ago, I had noticed that toooooo... :-( Consider it a bug. Opera 9 alpha OS X: *~html - target IE 7 and Opera 9.10 and 9.24 fails (red background) all others work as expected (greenish background, specific style ignored). Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/