blob: 3791bdd4a7e6f6e9eb232a05eb6fb1863aa1a257 [file] [log] [blame]
<csstest def=":nth-last-of-type() pseudo-class with collapsed elements" module="W3C Selectors" modulename="css3-modsel" number="147b" rev="1.2" date="10-october-2002" xmlns="http://www.example.org/css3tests">
<author>Ian Hickson</author>
<cssrules>
line { display: block; }
[type~=match] { background: lime ! important; }
line:nth-last-of-type(3n-1) { background: red; }
[hidden] { visibility: collapse; }
</cssrules>
<code>
<test xmlns="http://www.example.org/">
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match" hidden="hidden">This line should be green.</line>
<line type="" hidden="hidden">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="" hidden="hidden">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="">This line should be unstyled.</line>
<line type="">This line should be unstyled.</line>
<line type="match">This line should be green.</line>
<line type="">This line should be unstyled.</line>
</test>
</code>
</csstest>