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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-percent-width.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-percent-width.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-percent-width.html b/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-percent-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..a11a9380d0474772bc1e69fd4be09d6b9b80c06b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/widows-change-width-abspos-percent-width.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<p>There should be a blue <em>square</em> below.</p>
+<div style="columns:2; column-fill:auto; height:90px; line-height:20px; widows:3;">
+ <div id="lines" style="position:relative; width:400px; height:110px;">
+ <div id="abspos" style="position:absolute; width:25%; height:25px; top:0; left: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.offsetWidth, 100);
+ lines.style.width = "100px";
+ assert_equals(abspos.offsetWidth, 25);
+ }, "Resize container with percent-width abspos and widows");
+</script>

Powered by Google App Engine
This is Rietveld 408576698