mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
26 lines
1.3 KiB
XML
26 lines
1.3 KiB
XML
<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 > a|*, div.stub > 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>
|