<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-18a.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:hover pseudo-class on links</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-18b.xml">:hover pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-18.xml">:hover pseudo-class</data> </item>
  <item> <name>Test #</name> <data>26 of 296</data> </item>
  <item> <name>Testing</name> <data>:hover pseudo-class on links</data> </item>
  <item> <name>ID</name> <data>18a</data> </item>
  <item> <name>Date</name> <data>2004-02-29</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
   <requirement>User interaction is required for this test.</requirement>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml" class="a">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="b">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should <strong>remain green when you hover it</strong>.</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="c">The background color of <a href="http://link.example.com/">this anchor (<strong>here</strong>)</a> should <strong>remain green when the pointing device hovers over it</strong> (do not follow that link).</p>
</content>
  <source>
   <css>
p { color: navy; }

.a a:hover { background: green; color: white; }

.b a:hover { background: red; color: yellow; }
.b a:link { background: green; color: white; }

.c :link { background: green; color: white; }
.c :visited:hover { background: red; color: yellow; }
</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;a&quot;&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should turn to green when the pointing device hovers over it.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;b&quot;&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should &lt;strong&gt;remain green when you hover it&lt;/strong&gt;.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;c&quot;&gt;The background color of &lt;a href=&quot;http://link.example.com/&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should &lt;strong&gt;remain green when the pointing device hovers over it&lt;/strong&gt; (do not follow that link).&lt;/p&gt;
</xml>
  </source>
</test>