blob: 70bab9788b93df417c8c5f03b6d39305cf0049ab [file] [log] [blame]
<csstest def=":nth-last-of-type() pseudo-class with collapsed elements" module="W3C Selectors" modulename="css3-modsel" number="147a" rev="1.2" date="10-october-2002" xmlns="http://www.example.org/css3tests">
<author>Ian Hickson</author>
<cssrules>
line { display: block; }
[type~=match] { background: red; }
line:nth-last-of-type(3n-1) { background: lime; }
[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>