| CSS 3 Module | <== Test # ==> | |
|---|---|---|
| W3C Selectors | 61 of 65 of the static tests category | |
| 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
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>