Drop obsolete HTMLDocument.width / height attributes
[WebKit-https.git] / LayoutTests / imported / blink / do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html
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;
16
17         dt.parentNode.removeChild(dt);
18
19         var p = document.createElement('p');
20         div.appendChild(p);
21         document.body.offsetTop;
22
23         var text = document.createTextNode('88');
24         div.appendChild(text);
25
26         p.setAttribute("class", "fixed");
27
28         var command = document.createElement('command');
29         command.setAttribute('class', 'colcount');
30         nav.appendChild(command);
31     }
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>