blob: 3850e6c9c4a72936df14c95cb8a4d02cad9514a6 [file] [log] [blame]
<html>
<body onload="runTest()">
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function runTest()
{
document.body.offsetTop;
var container = document.getElementById('container');
var test = document.getElementById('test');
var blockquote = document.getElementById('blockquote');
blockquote.parentNode.removeChild(blockquote);
test.appendChild(blockquote);
document.body.offsetTop;
test.parentNode.removeChild(test);
if (window.layoutTestController) {
// Force a focus in which forces a paint that can trigger the crash.
layoutTestController.setWindowIsKey(false);
layoutTestController.setWindowIsKey(true);
document.getElementById("results").innerHTML = "PASS";
}
}
</script>
<div>This test passes if it does not crash.</div>
<div id="container" style="display: -webkit-box;">
<div id="test">
<span style="float: right;">This is a floating span.</span>
<span>.</span>
</div>
<span>
<ol id="results">
<blockquote id="blockquote">blockquote</blockquote>
</ol>
</span>
</div>
</body>
</html>