mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
19 lines
1,003 B
XML
19 lines
1,003 B
XML
<csstest def="Direct adjacent combinator" module="W3C Selectors" modulename="css3-modsel" number="45b" rev="1.1" date="05-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>.green { background-color: lime; }
|
|
.white { background-color: transparent ! important; }
|
|
div.stub > p + p { background-color: red; }</cssrules>
|
|
|
|
<code>
|
|
<div class="stub" xmlns="http://www.w3.org/1999/xhtml">
|
|
<p class="green">This paragraph should have a green background.</p>
|
|
<p class="white">But this one should be unstyled.</p>
|
|
<p class="white">And this one should also be unstyled.</p>
|
|
<address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
|
|
<p class="green">This paragraph should have a green background too.</p>
|
|
</div>
|
|
</code>
|
|
</csstest>
|