Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / deprecated-flexbox / horizontal-box-float-crash.html
blobfe4a9a61020bd208a2ce992ac01c80bc311db179
1 <html>
2 <body onload="runTest()">
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function runTest()
9 document.body.offsetTop;
10 var container = document.getElementById('container');
11 var test = document.getElementById('test');
12 var blockquote = document.getElementById('blockquote');
13 blockquote.parentNode.removeChild(blockquote);
14 test.appendChild(blockquote);
15 document.body.offsetTop;
16 test.parentNode.removeChild(test);
17 if (window.testRunner) {
18 // Force a focus in which forces a paint that can trigger the crash.
19 testRunner.setWindowIsKey(false);
20 testRunner.setWindowIsKey(true);
21 document.getElementById("results").innerHTML = "PASS";
24 </script>
25 <div>This test passes if it does not crash.</div>
26 <div id="container" style="display: -webkit-box;">
27 <div id="test">
28 <span style="float: right;">This is a floating span.</span>
29 <span>.</span>
30 </div>
31 <span>
32 <ol id="results">
33 <blockquote id="blockquote">blockquote</blockquote>
34 </ol>
35 </span>
36 </div>
37 </body>
38 </html>