servo/tests/wpt/web-platform-tests/css/css3-selectors/css3-modsel-37.xml

14 lines
687 B
XML

<csstest def=":only-of-type pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="37" 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>.red { background-color : red }
.t1 :only-of-type { background-color : lime }
</cssrules>
<code>
<div class="t1" xmlns="http://www.w3.org/1999/xhtml">
<p>This paragraph should have normal background</p>
<address class="red">But this address should have green background</address>
<p>This paragraph should have normal background</p>
</div>
</code>
</csstest>