blob: 93b657592a9c5e601e3528afdb8b288e50e02ece [file] [log] [blame]
<csstest def="NEGATED Attribute space-separated value selector with universal namespace" module="W3C Selectors" modulename="css3-modsel" number="132" 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, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.deu, *|q { background-color : red }
div.stub html|*:not([*|class~="deux"]),
div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : lime }
</cssrules>
<code>
<div class="stub" xmlns="http://www.w3.org/1999/xhtml">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q a:bar="un deux trois" xmlns="http://www.example.org/a">This paragraph should have a green background.</q>
<q a:foo="un second deuxieme trois" xmlns="http://www.example.org/a">This paragraph should have a green background.</q>
<r a:foo="un deux trois" xmlns="http://www.example.org/a">This paragraph should be unstyled.</r>
<s b:foo="un deux trois" xmlns="http://www.example.org/b">This paragraph should be unstyled.</s>
</div>
</code>
</csstest>