Do not create a shape object outside of the layout context
[WebKit-https.git] / LayoutTests / fast / block / float / float-not-removed-from-next-sibling3.html
1 <html>\r
2     <body onload="runTest()">\r
3         <div style="width: 15px;">\r
4             <script>\r
5                 function runTest()\r
6                 {\r
7                     document.body.offsetTop;\r
8                     var container = document.getElementById('panel');\r
9                     container.style.position = 'relative';\r
10                     document.getElementById('test1').style.overflow = 'hidden';\r
11                     document.getElementById('test2').style.position = 'absolute';\r
12                 }\r
13             </script>\r
14             <div id="panel">\r
15                 <div id="test1">\r
16                     <img style="float: left; width: 15px; height: 200px; background-color: silver;">\r
17                 </div>\r
18                 <div id="test2" style="font-family: ahem;">\r
19                     <a><p>A B C D</p>\r
20                 </div>\r
21             </div>\r
22         </div>\r
23     </body>\r
24 </html>\r