blob: fa5ea77a07b2b1f9e88b545bb78c8e9b49b6f4fa [file] [log] [blame]
<csstest def="NEGATED attribute dash-separated value selector" module="W3C Selectors" modulename="css3-modsel" number="53" 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-bar"]) { color : lime }
div.stub *|p:not([lang|="en-us"]) { color : lime }
div.stub b|*[test|="foo2-bar"] { color : lime }
</cssrules>
<code>
<div class="stub" xmlns="http://www.w3.org/1999/xhtml">
<q test="foo-bar" xmlns="http://www.example.org/a">
<r test="foo-bartut">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="en-uk">This text should be in green characters</p>
<u test="foo2-bar-lol" xmlns="http://www.example.org/b">This text should be in green characters</u>
</div>
</code>
</csstest>