servo/tests/wpt/web-platform-tests/css/css3-selectors/css3-modsel-147b.xml

37 lines
1.6 KiB
XML

<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>