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

Unified Diff: LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line.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-other-block-on-line.html
diff --git a/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line.html b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..06054592b7564f434303474d86e2fc300fe1ef84
--- /dev/null
+++ b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<style>
+ body {
+ margin: 0;
+ padding: 0;
+ }
+ #container {
+ position: relative;
+ background: #ccc;
+ font: 20px Ahem;
+ }
+ #floater {
+ float: none;
+ }
+</style>
+<body>
+ <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>
+ <div id="container">
+ <strong></strong>
+ <p></p>
+ <dd id="floater"></dd>
+ <br>
+ </div>
+ <script>
+ document.body.offsetTop;
+ document.getElementById('floater').style.float = 'right';
+ </script>
+</body>
+
+

Powered by Google App Engine
This is Rietveld 408576698