<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-45b.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Direct 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-45c.xml">Direct adjacent combinator and classes</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-45.xml">Direct adjacent combinator</data> </item>
  <item> <name>Test #</name> <data>62 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Direct adjacent combinator</data> </item>
  <item> <name>ID</name> <data>45b</data> </item>
  <item> <name>Date</name> <data>2001-11-05</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <p class="white">But this one should be unstyled.</p>
  <p class="white">And this one should also be unstyled.</p>
  <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
  <p class="green">This paragraph should have a green background too.</p>
 </div>
</content>
  <source>
   <css>.green { background-color: lime; }
.white { background-color: transparent ! 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 class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;But this one should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;And this one should also be unstyled.&lt;/p&gt;
  &lt;address class=&quot;green&quot;&gt;This address is only here to fill some space between two paragraphs and should have a green background.&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background too.&lt;/p&gt;
 &lt;/div&gt;
</xml>
  </source>
</test>