CSS 3 Module <== Test # ==>
W3C Selectors 174 of 276 of the static tests category
Testing Date Revision
NEGATED Attribute value selector with declared namespace (ID #124b) 2001-11-13 1.1

NOTE: The UA must support namespaces for this test.

This paragraph should have a green background.

This paragraph should be unstyled. This paragraph should have a green background. This paragraph should have a green background.
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
div.stub *:not([a|title="foo"]) {background-color : red }
<div class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>