mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<csstest def=":nth-of-type() pseudo-class with hidden elements" module="W3C Selectors" modulename="css3-modsel" number="145b" rev="1.1" date="9-october-2002" xmlns="http://www.example.org/css3tests">
|
|
|
|
<author>Ian Hickson</author>
|
|
|
|
<cssrules>
|
|
line { display: block; }
|
|
[type~=odd] { background: lime ! important; }
|
|
line:nth-of-type(odd) { background: red; }
|
|
[hidden] { display: none; }
|
|
</cssrules>
|
|
|
|
<code>
|
|
<test xmlns="http://www.example.org/">
|
|
<line type="odd">This line should be green.</line>
|
|
<line type="even">This line should be unstyled.</line>
|
|
<line type="odd" hidden="hidden">This line should be green.</line>
|
|
<line type="even">This line should be unstyled.</line>
|
|
<line type="odd">This line should be green.</line>
|
|
<line type="even">This line should be unstyled.</line>
|
|
<line type="odd">This line should be green.</line>
|
|
<line type="even" hidden="hidden">This line should be unstyled.</line>
|
|
<line type="odd">This line should be green.</line>
|
|
<line type="even">This line should be unstyled.</line>
|
|
<line type="odd">This line should be green.</line>
|
|
<line type="even" hidden="hidden">This line should be unstyled.</line>
|
|
<line type="odd" hidden="hidden">This line should be green.</line>
|
|
<line type="even">This line should be unstyled.</line>
|
|
<line type="odd">This line should be green.</line>
|
|
</test>
|
|
</code>
|
|
</csstest>
|