64ee1f467a50ddb0a4cec66aa72f7f0efd1b2ab4
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / block / float / float-not-removed-from-next-sibling-crash.html
1 <html>\r
2     <body onload="runTest()">\r
3         Test passes if it does not crash.\r
4         <div style="width: 15px;">\r
5             <script>\r
6                 if (window.testRunner)\r
7                     testRunner.dumpAsText();\r
8 \r
9                 function runTest()\r
10                 {\r
11                     document.body.offsetTop;\r
12                     var container = document.getElementById('panel');\r
13                     container.style.position = 'relative';\r
14                     document.getElementById('test1').style.position = 'absolute';\r
15                     document.getElementById('test2').style.position = 'absolute';\r
16                     document.body.offsetTop;\r
17                     \r
18                     container.style.height = '1px';\r
19                     document.getElementById('test1').style.display = 'none';\r
20                 }\r
21             </script>\r
22             <div id="panel">\r
23                 <div id="test1">\r
24                     <img style="float: left" height="1px">\r
25                 </div>\r
26                 <div id="test2">\r
27                     <a><p>P A S S</p>\r
28                 </div>\r
29             </div>\r
30         </div>\r
31     </body>\r
32 </html>