blob: bedc9840168780b6ac7561613e9ae1da1349d35f [file] [log] [blame]
<csstest def="Child combinator" module="W3C Selectors" modulename="css3-modsel" number="44" rev="1.2" date="29-february-2004" 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>.white { background-color: transparent ! important; }
.red { background-color: red; }
div &gt; p.test { background-color: lime; }</cssrules>
<code>
<div xmlns="http://www.w3.org/1999/xhtml">
<p class="red test">This paragraph should have a green background</p>
<div>
<p class="red test">This paragraph should have a green background</p>
</div>
</div>
<table xmlns="http://www.w3.org/1999/xhtml">
<tbody>
<tr>
<td>
<p class="white test">This paragraph should be unstyled.</p>
</td>
</tr>
</tbody>
</table>
</code>
</csstest>