| <body> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| </script> |
| Test that dynamically making element absolute positioned does not corrupt it's childrens layout dirty state. This passes if it does not crash. |
| <div id=outer style="float:left" > |
| <div> |
| <div id=inner style="position:absolute; left:0px; top:0px; width:15px; height:15px;"></div> |
| </div> |
| </div> |
| <script> |
| // force layout |
| document.getElementById("outer").offsetHeight; |
| // this would corrupt layout dirty bits |
| document.getElementById("outer").style.position = "absolute"; |
| // this would turn corruption into crash |
| document.getElementById("inner").innerHTML = "<table><tr><td></td></tr></table>"; |
| </script> |
| |