CSS 3 Module <== Test # ==>
W3C Selectors 87 of 131 of the static tests category
Testing Date Revision
:contains() pseudo-class (ID #84) 12-november-2001 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>