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-other-block-on-line.html
blob06054592b7564f434303474d86e2fc300fe1ef84
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 line.</p>
18 <div id="container">
19 <strong></strong>
20 <p></p>
21 <dd id="floater"></dd>
22 <br>
23 </div>
24 <script>
25 document.body.offsetTop;
26 document.getElementById('floater').style.float = 'right';
27 </script>
28 </body>