<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-183.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Syntax and parsing of class selectors</title>
 <author>Ian Hickson</author>
 <metadata>
  <item> <name>CSS 3 Module</name> <data>W3C Selectors</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-182.xml">Namespaces and \: in selectors</data> </item>
  <item> <name>Test #</name> <data>272 of 272 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Syntax and parsing of class selectors</data> </item>
  <item> <name>ID</name> <data>183</data> </item>
  <item> <name>Date</name> <data>2004-04-24</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml" class="test">This text should be green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class=".test">This text should be green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="foo">This text should be green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="foo quux">This text should be green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="foo  quux">This text should be green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class=" bar ">This text should be green.</p>
</content>
  <source>
   <css>
p { color: green; }
..test { background: red; color: yellow; }
.foo..quux { background: red; color: yellow; }
.bar. { background: red; color: yellow; }
</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;This text should be green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;.test&quot;&gt;This text should be green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;foo&quot;&gt;This text should be green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;foo quux&quot;&gt;This text should be green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;foo  quux&quot;&gt;This text should be green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot; bar &quot;&gt;This text should be green.&lt;/p&gt;
</xml>
  </source>
</test>