<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-163.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Contextual :contains</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-164.xml">:focus with ::selection</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-162.xml">Contextual ::selection</data> </item>
  <item> <name>Test #</name> <data>256 of 302</data> </item>
  <item> <name>Testing</name> <data>Contextual :contains</data> </item>
  <item> <name>ID</name> <data>163</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" class="float">TEST</p>
  <p xmlns="http://www.w3.org/1999/xhtml">TEST</p>
  <p xmlns="http://www.w3.org/1999/xhtml"><strong>TEST</strong></p>
  <table xmlns="http://www.w3.org/1999/xhtml"><tr><td>TEST</td></tr></table>
  <p xmlns="http://www.w3.org/1999/xhtml">While you hover over any of the four instances of the word TEST above, this paragraph should turn green.</p>
</content>
  <source>
   <css>
  .float { float: right; }
  :hover ~ :contains(&#39;green&#39;) { background: green; }
</css>
   <xml>
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;float&quot;&gt;TEST&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;TEST&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;strong&gt;TEST&lt;/strong&gt;&lt;/p&gt;
  &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;tr&gt;&lt;td&gt;TEST&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;While you hover over any of the four instances of the word TEST above, this paragraph should turn green.&lt;/p&gt;
</xml>
  </source>
</test>