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-anonymous-blocks-have-inline-children.html
blob772d22727379c1e9b5ec273872051a89498d044a
1 <!DOCTYPE html>
2 <style>
3 .fixed { position: fixed; }
4 .col { -webkit-column-span: all; }
5 .colcount:nth-child(2n) { -webkit-column-count: 1; }
6 .colcount { padding-left: 65536px; }
7 </style>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 function boom() {
12 var nav = document.createElement('nav');
13 nav.setAttribute('class', 'col');
14 div.appendChild(nav);
15 document.body.offsetTop;
17 dt.parentNode.removeChild(dt);
19 var p = document.createElement('p');
20 div.appendChild(p);
21 document.body.offsetTop;
23 var text = document.createTextNode('88');
24 div.appendChild(text);
26 p.setAttribute("class", "fixed");
28 var command = document.createElement('command');
29 command.setAttribute('class', 'colcount');
30 nav.appendChild(command);
32 window.onload = boom;
33 </script>
34 <p></p>
35 <dt id="dt"></dt>
36 <p></p>
37 <div class="colcount" id="div"></div>
38 <p> When a block element becomes positioned or float we should not strip anonymous blocks wrapping its siblings if any of their children are inline.</p>