CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 223 of 291 | |
Testing | Date | Revision |
:nth-of-type() pseudo-class with hidden elements (ID #145a) | 9-october-2002 | 1.1 |
NOTE: The UA must support namespaces for this test.
line { display: block; } [type~=odd] { background: red; } line:nth-of-type(odd) { background: lime; } [hidden] { display: none; }
<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>