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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/relayout-abspos.html

Issue 2516463003: If an object's containing block is in a flow thread, so is the object. (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/Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fragmentation/relayout-abspos.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/relayout-abspos.html b/third_party/WebKit/LayoutTests/fragmentation/relayout-abspos.html
new file mode 100644
index 0000000000000000000000000000000000000000..9faad206415d84d3e1f0a6b0193844be6039ce0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/relayout-abspos.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<p>The text "Column 1" should be seen in the first column, and "Column 2"
+ should be seen in the second column.</p>
+<div style="columns:2; column-fill:auto; column-rule:1px dotted; width:20em; height:130px; column-fill:auto; line-height:50px;">
+ <div style="height:50px;"></div>
+ <div style="position:relative;">
+ <div id="elm" style="position:absolute; top:0; left:0;">
+ <div id="child1">Column 1</div>
+ <div id="child2">Column 2</div>
+ </div>
+ </div>
+</div>
+
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ document.body.offsetTop;
+ var elm = document.getElementById("elm");
+ var child1 = document.getElementById("child1");
+ var child2 = document.getElementById("child2");
+ elm.style.fontSize = "2em";
+ assert_equals(elm.offsetHeight, 130);
+ assert_equals(child1.offsetTop, 0);
+ assert_equals(child2.offsetTop, 80);
+}, "Pagination struts retained after re-layout of abspos.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698