<?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-19.xml">:active pseudo-class</data> </item>
  <item> <name>Test #</name> <data>1 of 9 of the interactive tests category</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>03-november-2001</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml">
<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 (here) or its whitespace background, here:</p>
<address xmlns="http://www.w3.org/1999/xhtml">The background color of <a href="#foo">this anchor (here)</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.</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>five pixel</td>
   <td>border spacing</td>
  </tr>
  <tr>
   <td>and when it is</td>
   <td>over the cells.</td>
   <td></td>
  </tr>
  <tr>
   <td>Including blank:</td>
   <td></td>
   <td>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="http://www.w3.org/1999/xhtml">The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (here) or its whitespace background, here:&lt;/p>
&lt;address xmlns="http://www.w3.org/1999/xhtml">The background color of &lt;a href="#foo">this anchor (here)&lt;/a> should turn to green when the pointing device hovers over it.&lt;/address>
&lt;table xmlns="http://www.w3.org/1999/xhtml">
 &lt;tbody>
  &lt;tr>
   &lt;td>The cells in&lt;/td>
   &lt;td>this table&lt;/td>
   &lt;td>should go&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>green when&lt;/td>
   &lt;td>you hover&lt;/td>
   &lt;td>the pointing&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>device over&lt;/td>
   &lt;td>them.&lt;/td>
   &lt;td>&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>The rows in&lt;/td>
   &lt;td>this table&lt;/td>
   &lt;td>should go&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>dark green&lt;/td>
   &lt;td>when the&lt;/td>
   &lt;td>pointing device&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>is over the&lt;/td>
   &lt;td>five pixel&lt;/td>
   &lt;td>border spacing&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>and when it is&lt;/td>
   &lt;td>over the cells.&lt;/td>
   &lt;td>&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>Including blank:&lt;/td>
   &lt;td>&lt;/td>
   &lt;td>cells.&lt;/td>
  &lt;/tr>
 &lt;/tbody>
&lt;/table>
</xml>
  </source>
</test>