<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-176.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Combinations: classes and IDs</title>
 <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-177b.xml">Parsing : vs ::</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-175c.xml">Parsing: Numbers in classes</data> </item>
  <item> <name>Test #</name> <data>262 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Combinations: classes and IDs</data> </item>
  <item> <name>ID</name> <data>176</data> </item>
  <item> <name>Date</name> <data>2002-12-06</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content>
  <p xmlns="http://www.w3.org/1999/xhtml" id="id" class="class test">This line should be green.</p>
  <div xmlns="http://www.w3.org/1999/xhtml" id="theid" class="class test">This line should be green.</div>
</content>
  <source>
   <css>
p { background: red; color: yellow; }
p:not(#other).class:not(.fail).test#id#id { background: green; color: white; }
div { background: green; color: white; }
div:not(#theid).class:not(.fail).test#theid#theid { background: red; color: yellow; }
div:not(#other).notclass:not(.fail).test#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.test).test#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.fail).nottest#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.fail).nottest#theid#other { background: red; color: yellow; }
</css>
   <xml>
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;id&quot; class=&quot;class test&quot;&gt;This line should be green.&lt;/p&gt;
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;theid&quot; class=&quot;class test&quot;&gt;This line should be green.&lt;/div&gt;
</xml>
  </source>
</test>