| <csstest def="Indirect adjacent combinator" module="W3C Selectors" modulename="css3-modsel" number="46" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests"> |
| |
| <author>Daniel Glazman</author> |
| <author>Ian Hickson</author> |
| |
| <cssrules>.red { background-color : red } |
| div.stub > p ~ p { background-color : lime }</cssrules> |
| |
| <code> |
| <div class="stub" xmlns="http://www.w3.org/1999/xhtml"> |
| <p>This paragraph should be unstyled.</p> |
| <p class="red">But this one should have a green background</p> |
| <p class="red">And this one should also have a green background</p> |
| <address>This address is only here to fill some space between two paragraphs</address> |
| <p class="red">This paragraph should have a green background</p> |
| </div> |
| </code> |
| </csstest> |