blob: 2e16fdb3b900f7ddb1988abab15e4b6e294af10f [file] [log] [blame]
<csstest def="NEGATED :only-child pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="81" rev="1.1" date="12-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>.red { background-color : red }
p:not(:only-child) { background-color : lime }
div.testText &gt; div &gt; p { margin-left : 1em }
</cssrules>
<code>
<p class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
<div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph.
<p>This paragraph should be unstyled.</p>
</div>
</code>
</csstest>