<html>
Test passes if it does not crash.
<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function runTest()
{
    child = document.getElementById('test');
    child.parentNode.removeChild(child);

	document.body.offsetTop;
}

window.onload = runTest;
</script>
<style id='test'>
    p { float: left; }
</style>
<table><span><p></p><p></p></span></table>
</html>
