blob: 06b98529876db7d19e830866afc9a0840240eae8 [file] [log] [blame]
<csstest def="NEGATED Dynamic handling of :empty" module="W3C Selectors" modulename="css3-modsel" number="d1" rev="1.1" date="3-march-2004" xmlns="http://www.example.org/css3tests">
<author>Ian Hickson</author>
<dynamic/>
<cssrules>
#test { background: red; display: block; padding: 1em; }
#test:not(:empty) { background: lime; }
</cssrules>
<code>
<div xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript">
<![CDATA[
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>
</code>
</csstest>