blob: 0524450449c23d0df7ea749de79047d4d01eeb3b [file] [log] [blame]
<csstest def="Attribute dash-separated value selector without declared namespace" module="W3C Selectors" modulename="css3-modsel" number="114" rev="1.1" date="13-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<author>Ian Hickson</author>
<cssrules>@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : red }
*|*[|lang|="foo-bar"], *|*[|myattr|="tat-tut"] { background-color : lime }</cssrules>
<code>
<p lang="foo-bar" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
<address lang="foo-b" xmlns="http://www.w3.org/1999/xhtml">This address should be unstyled.</address>
<address lang="foo-barbar-toto" xmlns="http://www.w3.org/1999/xhtml">This address should be unstyled.</address>
<q myattr="tat-tut-tot" xmlns="http://www.example.org/a">This paragraph should have a green background.</q>
<r b:myattr="tat-tut-tot" xmlns="http://www.example.org/b">This paragraph should be unstyled.</r>
</code>
</csstest>