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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-right-aligned.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/fragmentation/widows-change-width-abspos-right-aligned.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-right-aligned.html b/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-right-aligned.html
new file mode 100644
index 0000000000000000000000000000000000000000..caafd16c9f94430f8c54b1a1cc3868f48a7b6200
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-right-aligned.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<p>There should be a blue <em>square</em> below.</p>
+<div style="margin-left:100px; width:50px; height:25px; background:blue;"></div>
+<div style="columns:2; column-fill:auto; height:90px; line-height:20px; widows:3;">
+ <div id="lines" style="position:relative; width:100px; height:110px;">
+ <div id="abspos" style="position:absolute; width:50px; height:25px; top:0; right:0; background:blue;"></div>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ </div>
+</div>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+ test(() => {
+ var lines = document.getElementById("lines");
+ var abspos = document.getElementById("abspos");
+ assert_equals(abspos.offsetLeft, 50);
+ lines.style.width = "150px";
+ assert_equals(abspos.offsetLeft, 100);
+ }, "Resize container with right-aligned abspos and widows");
+</script>

Powered by Google App Engine
This is Rietveld 408576698