CSS 3 Module <== Test # ==>
W3C Selectors 109 of 179
Testing Date Revision
:contains() pseudo-class (ID #84) 2001-11-12 1.1

There is no disagreement over the fact that this paragraph should have a green background.

  • This list, including its bullets and all the text, should have a
  • green background throughout as well.
div.stub *:contains("agree") { background-color : lime }
.red { background-color : red }
 <div class="stub">
  <p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
  <ul class="red">
   <li>This list, including its bullets and all the text, should have a</li><li>green background throughout as well.</li>
  </ul>
 </div>