Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html
blob2584780cf07ae082a68bb17569e2abc7be9c4e8e
1 <!DOCTYPE html>
2 <style>
3 body {
4 margin: 0;
5 padding: 0;
7 #container {
8 position: relative;
9 background: #ccc;
10 font: 20px Ahem;
12 #floater {
13 float: none;
15 </style>
16 <body>
17 <p> When a block element becomes a float we should not strip anonymous blocks wrapping its inline siblings if there are other blocks on the
18 line. In this test case, the block is wrapped in an anonymous block as part of a continuation.</p>
19 <div id="container">
20 <span>
21 <p>Text</p>
22 </span>
23 <dd id="floater"></dd>
24 </div>
25 <script>
26 document.body.offsetTop;
27 document.getElementById('floater').style.float = 'right';
28 </script>
29 </body>