CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 1 of 10 of the dynamic tests category | |
Testing | Date | Revision |
NEGATED Dynamic handling of :empty (ID #d1) | 2004-03-03 | 1.1 |
NOTE: The UA must support ECMA-262 and DOM Level 2 Core for this test.
The following bar should be green.
#test { background: red; display: block; padding: 1em; } #test:not(:empty) { background: lime; }
<div> <script type="text/javascript"> function test() { document.getElementById('test').appendChild(document.createTextNode('This line should be green.')); } window.setTimeout("test()", 100); </script> <p> The following bar should be green. </p> <div id="test"></div> </div>