<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-46b.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Indirect adjacent combinator</title>
 <author>Daniel Glazman</author>
 <author>Ian Hickson</author>
 <metadata>
  <item> <name>CSS 3 Module</name> <data>W3C Selectors</data> </item>
  <item> <name>Next</name> <data xlink:type="simple" xlink:href="css3-modsel-47.xml">NEGATED type element selector</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-46.xml">Indirect adjacent combinator</data> </item>
  <item> <name>Test #</name> <data>65 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Indirect adjacent combinator</data> </item>
  <item> <name>ID</name> <data>46b</data> </item>
  <item> <name>Date</name> <data>2001-11-12</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="green">But this one should have a green background</p>
  <p class="green">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="green">This paragraph should have a green background</p>
 </div>
</content>
  <source>
   <css>.green { background-color : lime ! important }
div.stub &gt; p ~ p { background-color : red }</css>
   <xml>
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
</xml>
  </source>
</test>