Raw File
css3-modsel-45.xml
<csstest def="Direct adjacent combinator" module="W3C Selectors" modulename="css3-modsel" number="45" rev="1.1" date="05-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 &gt; 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>This paragraph should be unstyled.</p>
 </div>
</code>
</csstest>
back to top