mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<csstest def="NEGATED :last-child pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="78b" rev="1.2" date="3-march-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>.green { background-color : lime ! important }
|
|
.t1 td:not(:last-child) { background-color : red }
|
|
p > *:not(:last-child) { background-color : red }
|
|
table.t1 td { border : thin black solid }
|
|
</cssrules>
|
|
|
|
<code>
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
<table class="t1" border="1">
|
|
<tr>
|
|
<td class="green">green cell</td>
|
|
<td class="green">green cell</td>
|
|
<td>1.3</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="green">green cell</td>
|
|
<td class="green">green cell</td>
|
|
<td>2.3</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="green">green cell</td>
|
|
<td class="green">green cell</td>
|
|
<td>3.3</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<p xmlns="http://www.w3.org/1999/xhtml">This <span>paragraph should</span> be unstyled.</p>
|
|
</code>
|
|
</csstest>
|