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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/abspos-new-width-rebalance.html

Issue 2471623003: Complete layout even if a block needs relayout due to widows or column balancing. (Closed)
Patch Set: Getting the flowthread once makes the code slighty prettier. Created 4 years 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: third_party/WebKit/LayoutTests/fast/multicol/abspos-new-width-rebalance.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/abspos-new-width-rebalance.html b/third_party/WebKit/LayoutTests/fast/multicol/abspos-new-width-rebalance.html
new file mode 100644
index 0000000000000000000000000000000000000000..35d6103b89869cb7bce5c0f37fac6347b7f6c9ec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/abspos-new-width-rebalance.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<p>There should be a blue <em>square</em> in the top-right corner of this page.</p>
+<div style="position:relative; width:500px; height:100px; ">
+ <div style="position:absolute; right:0; top:0; width:50px; height:25px; background:blue;"></div>
+ <div id="multicol" style="position:absolute; columns:2; top:25px; right:0; width:200px;">
+ <div id="abspos" style="position:absolute; width:50px; height:25px; top:0; right:0; background:blue;"></div>
+ <div style="width:100px; height:100px;"></div>
+ </div>
+</div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+ test(() => {
+ var multicol = document.getElementById("multicol");
+ var abspos = document.getElementById("abspos");
+ assert_equals(abspos.offsetLeft, 150);
+ multicol.style.width = "300px";
+ assert_equals(abspos.offsetLeft, 250);
+ }, "Resize (multicol) container of right-aligned abspos");
+</script>

Powered by Google App Engine
This is Rietveld 408576698