Do not create a shape object outside of the layout context
[WebKit-https.git] / LayoutTests / fast / block / float / float-with-anonymous-previous-sibling-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that float is positioned properly when it is next to an anonymous block.</title>
5 </head>
6 <body>
7 <span>foo</span>
8 <div id="nextSibling"></div>
9 <script>
10   if (window.testRunner)
11     testRunner.waitUntilDone();
12
13   setTimeout(function() {
14         var floatDiv = document.createElement("div");
15         floatDiv.style.float = "right";
16         floatDiv.innerText = "bar";
17     document.body.insertBefore(floatDiv, document.getElementById("nextSibling"));
18     if (window.testRunner)
19       testRunner.notifyDone();
20 }, 0);
21 </script>       
22 </body></html>