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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <p>The text "Column 1" should be seen in the first column, and "Column 2"
3 should be seen in the second column.</p>
4 <div style="columns:2; column-fill:auto; column-rule:1px dotted; width:20em; hei ght:130px; column-fill:auto; line-height:50px;">
5 <div style="height:50px;"></div>
6 <div style="position:relative;">
7 <div id="elm" style="position:absolute; top:0; left:0;">
8 <div id="child1">Column 1</div>
9 <div id="child2">Column 2</div>
10 </div>
11 </div>
12 </div>
13
14 <script src="../resources/testharness.js"></script>
15 <script src="../resources/testharnessreport.js"></script>
16 <script>
17 test(() => {
18 document.body.offsetTop;
19 var elm = document.getElementById("elm");
20 var child1 = document.getElementById("child1");
21 var child2 = document.getElementById("child2");
22 elm.style.fontSize = "2em";
23 assert_equals(elm.offsetHeight, 130);
24 assert_equals(child1.offsetTop, 0);
25 assert_equals(child2.offsetTop, 80);
26 }, "Pagination struts retained after re-layout of abspos.");
27 </script>
OLDNEW
« 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