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