CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 98 of 108 of the static tests category | |
Testing | Date | Revision |
:empty pseudo-class and elements (ID #152) | 15-november-2001 | 1.0 |
address { background: lime; margin: 0; height: 1em; } address:empty { background: red; } .text { margin: -1em 0 0 0; }
<address><span></span></address> <div class="text">This line should have a green background.</div>