Newly added float should trigger full layout on the block.
[WebKit-https.git] / LayoutTests / fast / inline / new-float-needs-layout-when-line-is-dirty.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 div {
6     border: 1px solid green;
7 }
8
9 #container {
10     width: 100px;
11     height: 200px;
12 }
13
14 #inlineblock {
15         display: inline-block;
16         width: 10px;
17         height: 10px;
18 }
19
20 .floatBox {
21         width: 30px;
22         height: 30px;
23         float: left;
24 }
25 </style>
26 </head>
27 <body>
28 <div id=container>Pass if no crash<div id=inlineblock></div>foobar foobar foobar foobar foobar</div>
29 <script>
30 if (window.testRunner)
31     testRunner.dumpAsText();
32
33 document.body.offsetHeight;
34
35 let floatBox = document.createElement("div");
36 floatBox.className = "floatBox";
37 inlineblock.style.height = "20px";
38 container.appendChild(floatBox);
39
40 document.body.offsetHeight;
41 </script>
42 </body>
43 </html>