CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 89 of 182 | |
Testing | Date | Revision |
NEGATED :root pseudo-class (ID #72) | 2001-11-27 | 1.1 |
This paragraph should have a green background and there should be no red anywhere.
p:not(:root) { background-color: lime; } div * { background-color: red; }
<div> <p>This paragraph should have a green background and there should be no red anywhere.</p> </div>