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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html
diff --git a/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html
new file mode 100644
index 0000000000000000000000000000000000000000..772d22727379c1e9b5ec273872051a89498d044a
--- /dev/null
+++ b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+ .fixed { position: fixed; }
+ .col { -webkit-column-span: all; }
+ .colcount:nth-child(2n) { -webkit-column-count: 1; }
+ .colcount { padding-left: 65536px; }
+</style>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ function boom() {
+ var nav = document.createElement('nav');
+ nav.setAttribute('class', 'col');
+ div.appendChild(nav);
+ document.body.offsetTop;
+
+ dt.parentNode.removeChild(dt);
+
+ var p = document.createElement('p');
+ div.appendChild(p);
+ document.body.offsetTop;
+
+ var text = document.createTextNode('88');
+ div.appendChild(text);
+
+ p.setAttribute("class", "fixed");
+
+ var command = document.createElement('command');
+ command.setAttribute('class', 'colcount');
+ nav.appendChild(command);
+ }
+ window.onload = boom;
+</script>
+<p></p>
+<dt id="dt"></dt>
+<p></p>
+<div class="colcount" id="div"></div>
+<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>

Powered by Google App Engine
This is Rietveld 408576698