Philippe Wittenbergh wrote:
> On Apr 29, 2006, at 8:13 AM, Greg Reimer wrote:
> 
>> Is the correct behavior that CSS adjacent sibling selection should NOT
>> be affected by HTML comments? I ask because IE7 adjacent sibling
>> selection fails when an HTML comment intervenes between the adjacent
>> siblings. For example h1+h2 won't select
>> <h1>text</h1><!--foo--><h2>text</h2> in the most recent IE7 beta.
> 
> If that is what you have in your html, then that should work (it does  
> everywhere on my Mac, except IE 5 Mac).


h1+h2 {color:green}

h1+*+h2 {color:red}


<h1>test h1</h1>
<!-- comment -->
<h2>This h2 should be green.</h2>

IE7 (build 5346.5, April 25) renders the h2 in RED.

http://www.satzansatz.de/cssd/ie7apr25_sibling.html

CSS wouldn't be fun without IE.

Ingo

-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
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/

Reply via email to