blob: 559584aa3dd57c1f528e7e3dba65e13e19756d73 [file] [log] [blame]
<style>
.display-when-last-child { display: none; }
.display-when-last-child:last-child { display: block; }
</style>
<div>
<div class="display-when-last-child">PASS</div>
<div id="test"></div>
</div>
<script>
var test = document.getElementById('test');
test.parentElement.removeChild(test);
if (window.testRunner)
testRunner.dumpAsText();
</script>