CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 18 of 153 of the static tests category | |
Testing | Date | Revision |
NEGATED More than one class selector (ID #14e) | 2002-12-06 | 1.0 |
This line should be green.
p { background: green; color: white; } p:not(.t1):not(.t2) { background: red; color: yellow; } div { background: red; color: yellow; } div:not(.t1) { background: green; color: white; } address { background: green; color: white; } address:not(.t5):not(.t5) { background: red; color: yellow; }
<p class="t1 t2">This line should be green.</p> <div class="t3">This line should be green.</div> <address class="t4 t5 t6">This line should be green.</address>