<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-70.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :checked 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-72.xml">NEGATED :root pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-69.xml">NEGATED :disabled pseudo-class</data> </item>
  <item> <name>Test #</name> <data>86 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED :checked pseudo-class</data> </item>
  <item> <name>ID</name> <data>70</data> </item>
  <item> <name>Date</name> <data>2004-02-24</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml">
<input type="checkbox"></input> <span>Everything in this paragraph should have a green background</span></p>
</content>
  <source>
   <css>input, span { background-color : red }
input:not(:checked), input:not(:checked) + span { background-color : lime}</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;input type=&quot;checkbox&quot;&gt;&lt;/input&gt; &lt;span&gt;Everything in this paragraph should have a green background&lt;/span&gt;&lt;/p&gt;
</xml>
  </source>
</test>