CSS 3 Module <== Test # ==>
W3C Selectors 238 of 296
Testing Date Revision
:empty pseudo-class and CDATA (ID #153) 2004-04-24 1.1

NOTE: The UA must support namespaces for this test.

This line should have a green background.

(Note: This test is based on unpublished errata.)

 address { background: red; margin: 0; height: 1em; display: block; }
 address:empty { background: lime; }
 .text { margin: -1em 0 0 0; }
 <address xmlns="http://tests.example.org/xml-only/"><![CDATA[]]></address>
 <div class="text">This line should have a green background.</div>
 <p>(Note: This test is based on unpublished errata.)</p>