Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dynamic / ancestor-to-absolute.html
blob3b19d7085e1c0edc1542a29ef215f0d82cba35eb
1 <body>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 Test that dynamically making element absolute positioned does not corrupt it's childrens layout dirty state. This passes if it does not crash.
7 <div id=outer style="float:left" >
8 <div>
9 <div id=inner style="position:absolute; left:0px; top:0px; width:15px; height:15px;"></div>
10 </div>
11 </div>
12 <script>
13 // force layout
14 document.getElementById("outer").offsetHeight;
15 // this would corrupt layout dirty bits
16 document.getElementById("outer").style.position = "absolute";
17 // this would turn corruption into crash
18 document.getElementById("inner").innerHTML = "<table><tr><td></td></tr></table>";
19 </script>