<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-81.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :only-child pseudo-class</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-81b.xml">NEGATED :only-child pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-80.xml">NEGATED :last-of-type pseudo-class</data> </item>
  <item> <name>Test #</name> <data>103 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED :only-child pseudo-class</data> </item>
  <item> <name>ID</name> <data>81</data> </item>
  <item> <name>Date</name> <data>2001-11-12</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
 <p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have a green background.</p>
 <div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
</content>
  <source>
   <css>.red { background-color : red }
p:not(:only-child) { background-color : lime }
div.testText &gt; div &gt; p { margin-left : 1em }
</css>
   <xml>
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
</xml>
  </source>
</test>