CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 40 of 130 of the static tests category | |
Testing | Date | Revision |
NEGATED type element selector (ID #47) | 11-july-2001 | 1.0 |
NOTE: The UA must support namespaces for this test.
The text in this paragraph should have a green background
This address should have a green backgroundThis a:q element should have a green background
Thhis paragraph should NOT have a green background
div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color : red } address, *|q, *|r { display : block ; margin-bottom : 1em } div.stub *:not(p) { background-color : lime }
<div class="stub"> <p> <span>The text in this paragraph should have a green background</span> </p> <address>This address should have a green background</address> <q xmlns="http://www.example.org/a">This a:q element should have a green background</q> <r xmlns="">This r element w/o namespace should have a green background</r> <p>Thhis paragraph should NOT have a green background</p> </div>