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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html

Issue 1375913003: Multicol: Add test that re-lays out a float and pushes it downwards at the same time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review. Now 20% more BR-free. Created 5 years, 2 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/multicol/relayout-and-push-float-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/multicol/relayout-and-push-float.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html b/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html
new file mode 100644
index 0000000000000000000000000000000000000000..05e2263b14c9cc4cc2dc456c59333ee2a57a907b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>Test that re-laying out a float and at the same time pushing it downwards properly moves it to
+ next column, and that we don't get a residual pagination strut before the second float.</p>
+<p>There should be a blue square below.</p>
+<div id="container" style="position:relative; -webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:80px; height:50px; line-height:20px;">
+ <span id="newElm" style="display:none;">
+ <br>
+ </span>
+ <br>
+ <div id="firstFloat" style="float:left; width:30px; background:blue;" data-offset-y="0">
+ <br>
+ </div>
+ <div style="float:left; width:40px; background:blue;" data-offset-y="20">
+ <br>
+ </div>
+</div>
+<script>
+ document.body.offsetTop;
+ document.getElementById("newElm").style.display = "inline";
+ document.getElementById("firstFloat").style.paddingLeft = "10px";
+ checkLayout("#container");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698