mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
<csstest def="Universal selector without declared namespace" module="W3C Selectors" modulename="css3-modsel" number="96" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" 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);
|
|
div.green * { background-color : red }
|
|
div.test * { display : block ; margin-bottom : 1em }
|
|
div.test |* { background-color : lime }</cssrules>
|
|
|
|
<code>
|
|
<div class="test" xmlns="http://www.w3.org/1999/xhtml">
|
|
<p>This line should be unstyled.</p>
|
|
<elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
|
|
<elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
|
|
<div class="green">
|
|
<p xmlns="">This line should have a green background</p>
|
|
<elementA xmlns="">This line should have a green background</elementA>
|
|
<elementB xmlns="">This line should have a green background</elementB>
|
|
</div>
|
|
</div>
|
|
</code>
|
|
</csstest>
|