Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / relayout-nested-positioned-elements-crash.html
bloba8da70fd0ca6afcd36f5e1ed701a1a69cea0ddf2
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <p id="description"></p>
7 <div id="console"></div>
8 <div style="position:absolute">
9 <span style="position:relative">
10 <div style="position:absolute">
11 <input id="hideMe"/>
12 </div>
13 </span>
14 </div>
15 <script>
16 description("This tests that we don't cause an assertion failure on relayout of nested positioned elements. This test pass if we don't cause an assertion failure.");
17 window.jsTestIsAsync = true;
19 window.setTimeout(runTest, 0); // For some reason we need the setTimeout() for this test to work.
20 function runTest()
22 document.getElementById("hideMe").style.display = "none";
23 window.setTimeout(finalizeTest, 0);
26 function finalizeTest()
28 shouldBeEqualToString('document.getElementById("hideMe").style.display', 'none');
29 finishJSTest();
31 </script>
32 </body>
33 </html>