| <csstest def=":nth-of-type() pseudo-class with hidden elements" module="W3C Selectors" modulename="css3-modsel" number="145a" rev="1.1" date="9-october-2002" xmlns="http://www.example.org/css3tests"> |
| |
| <author>Ian Hickson</author> |
| |
| <cssrules> |
| line { display: block; } |
| [type~=odd] { background: red; } |
| line:nth-of-type(odd) { background: lime; } |
| [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> |