blob: ef1ae777bb056d4d70a1a4ae328ba801d247ec02 [file] [log] [blame]
<csstest def="NEGATED attribute space-separated value selector" module="W3C Selectors" modulename="css3-modsel" number="52" rev="1.0" date="11-july-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>
<cssrules>@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub p { color : red }
div.stub &gt; a|*, div.stub &gt; b|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test~="foo"]) { color : lime }
div.stub *|p:not([class~="foo"]) { color : lime }
div.stub b|*[test~="foo2"] { color : lime }
</cssrules>
<code>
<div class="stub" xmlns="http://www.w3.org/1999/xhtml">
<q test="bar foo tut" xmlns="http://www.example.org/a">
<r test="tut foofoo bar">This text should be</r>
<r>in green characters</r>
</q>
<s test="bar tut" xmlns="http://www.example.org/a">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="tit foo1 tut">This text should be in green characters</p>
<u test="tit foo2 tut" xmlns="http://www.example.org/b">This text should be in green characters</u>
</div>
</code>
</csstest>