<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-171.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Classes: XHTML global class attribute</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-172a.xml">Namespaced attribute selectors</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-170d.xml">Long chains of selectors</data> </item>
  <item> <name>Test #</name> <data>253 of 272 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Classes: XHTML global class attribute</data> </item>
  <item> <name>ID</name> <data>171</data> </item>
  <item> <name>Date</name> <data>2002-09-20</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
   <requirement>The UA must support namespaces for this test.</requirement>
  <content>
   <p xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml">
    <span xhtml:class="fail">This should be green.</span>
   </p>
</content>
  <source>
   <css>
 p { color: green; }
 .fail { color: red; }
</css>
   <xml>
   &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:xhtml=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;span xhtml:class=&quot;fail&quot;&gt;This should be green.&lt;/span&gt;
   &lt;/p&gt;
</xml>
  </source>
</test>