CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 216 of 244 | |
Testing | Date | Revision |
:nth-child() pseudo-class with hidden elements (ID #146b) | 14-november-2001 | 1.0 |
NOTE: The UA must support namespaces for this test.
line { display: block; } [type~=match] { background: lime ! important; } line:nth-child(3n-1) { bacground: red; } [hidden] { display: none; }
<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="" hidden="hidden">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="" hidden="hidden">This line should be unstyled.</line> <line type="match" hidden="hidden">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">This line should be green.</line> <line type="">This line should be unstyled.</line> </test>