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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous.html

Issue 1759853003: Merge contiguous anonymous blocks after removing a float or out-of-pos-element between them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@585604-4
Patch Set: Updated Created 4 years, 9 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous.html b/third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous.html
new file mode 100644
index 0000000000000000000000000000000000000000..4834b0fb170b28810c263b261f78a2dfa5b41bd7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+body { margin: 0px; padding; 0px; }
+#div { display:block; width: 50px; height: 50px; background-color: green; }
+.float { width: 50px; height: 50px; background-color: green; float: left; }
+</style>
+<div id="container" style="width: 500px;">
+ <div style="height: 50px; width: 50px;"></div>
+ <span>X</span>
+ <div class="float"></div>
+ <div id="div"></div>
+ <div id="float" class="float" data-offset-y=50></div>
+ <span>X</span>
+</div>
+<p>crbug.com/585064: Two contiguous anonymous blocks with inline content should be merged together. There should be a single green rectangle below.</p>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+document.body.offsetTop;
+document.getElementById("div").style.float = 'left';
+checkLayout("#container");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/add-float-back-to-anonymous-block-previous-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698