CSS 3 Module <== Test # ==>
W3C Selectors 74 of 78
Testing Date Revision
NEGATED :contains() pseudo-class (ID #85) 11-july-2001 1.0

This paragraph should have a green background

This paragraph should NOT have a green background

  • All this list, including bullets, should NOT have a gr
  • een background
div.stub *:contains("red") { background-color : lime }
.red { background-color : red }
<div class="stub">
  <p class="red">This paragraph should have a green background</p>
  <p>This paragraph should NOT have a green background</p>
  <ul>
    <li>All this list, including bullets, should NOT have a gr</li>
<li>een background</li>
  </ul>
</div>