CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 240 of 302 | |
Testing | Date | Revision |
:empty pseudo-class and CDATA (ID #153) | 2001-11-15 | 1.0 |
NOTE: The UA must support namespaces for this test.
(Note. This test may be invalidated depending on the results of a discussion regarding a controversial and unpublished clarification to the spec.)
address { background: lime; margin: 0; height: 1em; display: block; } address:empty { background: red; } .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 may be invalidated depending on the results of <a href="http://lists.w3.org/Archives/Member/w3c-css-wg/2001OctDec/thread.html#140">a discussion</a> regarding a controversial and unpublished clarification to the spec.)</p>