CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 95 of 153 of the static tests category | |
Testing | Date | Revision |
NEGATED :only-of-type pseudo-class (ID #82b) | 2001-11-12 | 1.1 |
This paragraph should have green background.
But this address should be unstyled.This paragraph should have green background.
.green { background-color : lime ! important } .t1 *:not(:only-of-type) { background-color : red }
<div class="t1"> <p class="green">This paragraph should have green background.</p> <address>But this address should be unstyled.</address> <p class="green">This paragraph should have green background.</p> </div>