Do not create a shape object outside of the layout context
[WebKit-https.git] / LayoutTests / fast / block / float / hit-test-on-overlapping-floats.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <style>
5         #leftc {
6             float: left;
7             width: 500px;
8             background-color: silver;
9             margin-right: -100px;
10         }
11
12         #rightc {
13             float: right;
14             width: 400px;
15             background-color: rgba(0, 128, 0, 0.75);
16             padding-bottom: 1px;
17         }
18         </style>
19     </head>
20     <body>
21         <div style="width:800px">
22             <div id="leftc">foo</div>
23             <div id="rightc">bar</div>
24             <div style="height:0px; width:0px; clear:left;"></div>
25         </div>
26         <script src="../../../resources/js-test-pre.js"></script>
27         <script>
28         shouldBe("document.elementFromPoint(450, 10)", "document.getElementById('rightc')");
29         </script>
30         <script src="../../../resources/js-test-post.js"></script>
31         </body>
32 </html>