<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Contextual :contains</title>
  <style type="text/css"><![CDATA[
  .float { float: right; }
  :hover ~ :contains('green') { background: green; }
]]></style>
  <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
  <link rel="prev" href="css3-modsel-162.xml" title="Contextual ::selection"/>
  <link rel="next" href="css3-modsel-164.xml" title=":focus with ::selection"/>
  <link rel="last" href="css3-modsel-d5e.xml" title="NEGATED :indeterminate with :checked"/>
  <link rel="up" href="./index.html"/>
  <link rel="top" href="../../index.html"/>
 </head>
 <body>
  <p class="float">TEST</p>
  <p>TEST</p>
  <p><strong>TEST</strong></p>
  <table><tr><td>TEST</td></tr></table>
  <p>While you hover over any of the four instances of the word TEST above, this paragraph should turn green.</p>
</body>
</html>