CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 118 of 256 of the static tests category | |
Testing | Date | Revision |
Attribute existence selector with declared namespace (ID #97) | 12-november-2001 | 1.1 |
NOTE: The UA must support namespaces for this test.
This paragraph should be unstyled.
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 { display : block ; margin-bottom : 1em } *|q { background-color : red } *[a|title] {background-color : lime }
<p title="a paragraph">This paragraph should be unstyled.</p> <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q> <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>