blob: fe4a9a61020bd208a2ce992ac01c80bc311db179 [file] [log] [blame]
<html>
<body onload="runTest()">
<script>
if (window.testRunner)
testRunner.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.testRunner) {
// Force a focus in which forces a paint that can trigger the crash.
testRunner.setWindowIsKey(false);
testRunner.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>