Revision 40e55d85d9e7649d8b8e573b8d9b77e0e183fe63 authored by Philip Jägenstedt on 27 April 2018, 09:23:29 UTC, committed by Blink WPT Bot on 27 April 2018, 09:41:43 UTC
1 parent 8f1bac8
Raw File
css3-modsel-33.xml
<csstest def=":last-child pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="33" rev="1.1" 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>
<cssrules>.red { background-color : red }
.t1 td:last-child { background-color : lime }
p &gt; *:last-child { background-color : lime }
</cssrules>

<code>
<div xmlns="http://www.w3.org/1999/xhtml">
<table class="t1" border="1">
  <tr>
    <td>1.1</td>
    <td>1.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>2.1</td>
    <td>2.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>3.1</td>
    <td>3.2</td>
    <td class="red">green cell</td>
  </tr>
</table>
</div>
<p xmlns="http://www.w3.org/1999/xhtml">
<span>This paragraph contains a span that should
     have a green background</span> and some text after it.</p>
</code>
</csstest>
back to top