Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html

Issue 253313005: Strip anonymous blocks when change in style removes need for them (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 anonymo us blocks wrapping its siblings if any of their children are inline.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698