CSS 3 Module <== Test # ==>
W3C Selectors 166 of 276 of the static tests category
Testing Date Revision
NEGATED type element selector with declared namespace (ID #118) 2002-07-30 1.2

NOTE: The UA must support namespaces for this test.

This paragraph should have a green background.

This paragraph should have a green background.

This paragraph should have a green background.

This paragraph should have a green background.

@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|l { display : block ; margin-bottom : 1em }
div.test * { background-color : red }
div.test *:not(a|p) { background-color : lime }
<div class="test">
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
 <p xmlns="">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/a">
 <l>This paragraph should have a green background.</l>
 </p>
</div>