<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-165.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:hover with ::selection</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-166.xml">:first-letter with ::first-letter</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-164.xml">:focus with ::selection</data> </item>
  <item> <name>Test #</name> <data>258 of 302</data> </item>
  <item> <name>Testing</name> <data>:hover with ::selection</data> </item>
  <item> <name>ID</name> <data>165</data> </item>
  <item> <name>Date</name> <data>2001-11-21</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">Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&#39;s border should at all times be a darker colour than the
   selection&#39;s background. Repeat the test with everything
   selected.</p>
</content>
  <source>
   <css>
  p { border: solid thick gray; }
  p:hover { border: solid thick green; }
  p::selection { background: silver; color: black; }
  p:hover::selection { background: lime; color: black; }
</css>
   <xml>
   &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&amp;#39;s border should at all times be a darker colour than the
   selection&amp;#39;s background. Repeat the test with everything
   selected.&lt;/p&gt;
</xml>
  </source>
</test>