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