CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 234 of 304 | |
Testing | Date | Revision |
:nth-last-of-type() pseudo-class with collapsed elements (ID #147b) | 2002-10-10 | 1.2 |
NOTE: The UA must support namespaces for this test.
line { display: block; } [type~=match] { background: lime ! important; } line:nth-last-of-type(3n-1) { background: red; } [hidden] { visibility: collapse; }
<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>