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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float-2.html

Issue 2532573003: Position a float before laying it out. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fragmentation/float-pushed-to-next-fragmentainer-by-floats.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float-2.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float-2.html b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..dafc1b5415f35b89b1f0d5af113d0a4457960063
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float-2.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<p>There should be a blue square below.</p>
+<div id="multicol" style="position:relative; columns:2; column-fill:auto; line-height:20px; width:100px; height:100px;">
+ <div><br></div>
+ <div id="elm" style="float:left; width:20px; background:blue;">
+ <div><br></div>
+ </div>
+</div>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ var multicol = document.getElementById("multicol");
+ var elm = document.getElementById("elm");
+ document.body.offsetTop;
+ multicol.style.height = "30px";
+ assert_equals(elm.offsetTop, 0);
+ assert_equals(elm.offsetHeight, 20);
+}, "Push float to next column");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fragmentation/float-pushed-to-next-fragmentainer-by-floats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698