https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 37940982e9e57da55d0bc3cfde5b699761406271 authored by Hwanseung Lee on 27 March 2018, 23:07:16 UTC
[css-typed-om] support r and rx and ry properties
Tip revision: 3794098
css3-modsel-31.xml
<csstest def=":nth-last-of-type() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="31" 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 }
p:nth-last-of-type(3) { background-color : lime }
dl &gt; :nth-last-of-type(3n+1) { background-color : lime }
</cssrules>

<code>
<p class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">But this address is here only to fill space in the dom..</address>
<p xmlns="http://www.w3.org/1999/xhtml">So does this paragraph !</p>
<p xmlns="http://www.w3.org/1999/xhtml">And so does this one too.</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
</code>

</csstest>
back to top