<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-18.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:hover 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-18a.xml">:hover pseudo-class on links</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-17.xml">:visited pseudo-class</data> </item>
  <item> <name>Test #</name> <data>25 of 296</data> </item>
  <item> <name>Testing</name> <data>:hover pseudo-class</data> </item>
  <item> <name>ID</name> <data>18</data> </item>
  <item> <name>Date</name> <data>2005-10-20</data> </item>
  <item> <name>Revision</name> <data>1.2</data> </item>
 </metadata>
   <requirement>User interaction is required for this test.</requirement>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml">The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
<address xmlns="http://www.w3.org/1999/xhtml">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
<table xmlns="http://www.w3.org/1999/xhtml">
 <tbody>
  <tr>
   <td>The cells in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>green when</td>
   <td>you hover</td>
   <td>the pointing</td>
  </tr>
  <tr>
   <td>device over</td>
   <td>them (<strong>here</strong>).</td>
   <td></td>
  </tr>
  <tr>
   <td>The rows in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>dark green</td>
   <td>when the</td>
   <td>pointing device</td>
  </tr>
  <tr>
   <td>is over the</td>
   <td>cells <strong>there</strong>:</td>
   <td></td> <!-- remove this cell to make an evil test; row should still go green, but cell should not -->
  </tr>
  <tr>
   <td>And <strong>here</strong>:</td>
   <td></td>
   <td>(blank cells).</td>
  </tr>
 </tbody>
</table>
</content>
  <source>
   <css>p:hover { background-color : lime }
a:hover { background-color : lime }

tr:hover { background-color : green }
td:hover { background-color : lime }

table { border-spacing: 5px; }</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (&lt;strong&gt;here&lt;/strong&gt;) or its whitespace background, &lt;strong&gt;here&lt;/strong&gt;:&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&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;/address&gt;
&lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;The cells in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;green when&lt;/td&gt;
   &lt;td&gt;you hover&lt;/td&gt;
   &lt;td&gt;the pointing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;device over&lt;/td&gt;
   &lt;td&gt;them (&lt;strong&gt;here&lt;/strong&gt;).&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;The rows in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;dark green&lt;/td&gt;
   &lt;td&gt;when the&lt;/td&gt;
   &lt;td&gt;pointing device&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;is over the&lt;/td&gt;
   &lt;td&gt;cells &lt;strong&gt;there&lt;/strong&gt;:&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt; &lt;!-- remove this cell to make an evil test; row should still go green, but cell should not --&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;And &lt;strong&gt;here&lt;/strong&gt;:&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
   &lt;td&gt;(blank cells).&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
</xml>
  </source>
</test>