blob: 25e2469dc1eb4507191b129d6b8982e1ee0e6ec6 [file] [log] [blame]
<script src="../../resources/js-test-pre.js"></script>
<svg>
<foreignObject>
<div style="position: absolute;">
<div id="div1"></div>
<div id="div2" style="overflow:hidden; width:100px; height:100px;">x</div>
</div>
</foreignObject>
</svg>
<script>
function RemoveNode(n) { n.parentNode.removeChild(n) }
window.onload = function() {
document.body.offsetTop; // Force layout.
RemoveNode(document.getElementById('div1'));
document.body.offsetTop; // Force layout.
RemoveNode(document.getElementById('div2'));
if (window.testRunner)
testRunner.dumpAsText();
}
</script>
<body>
PASS
</body>