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

Side by Side Diff: third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-unbreakable-blocks.html

Issue 2454083002: Need a deep layout pass when becoming (un)fragmented. (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/LayoutBlock.h » ('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 <style>
3 #inner > div { break-inside:avoid; }
4 </style>
5 <p>The word "PASS" should be seen 7 times below.</p>
6 <div id="container" style="position:relative; overflow:hidden; line-height:20px; ">
7 <div id="multicol" style="float:left; columns:3; column-fill:auto; height:70 px; text-align:right;">
8 <div style="width:6em;">
9 <div id="inner">
10 <div id="child1">PA</div>
11 <div id="child2">PA</div>
12 <div id="child3">PA</div>
13 <div id="child4">PA</div>
14 <div id="child5">PA</div>
15 <div id="child6">PA</div>
16 <div id="child7">PA</div>
17 </div>
18 </div>
19 </div>
20 <div style="float:left;">
21 SS<br>
22 SS<br>
23 SS<br>
24 SS<br>
25 SS<br>
26 SS<br>
27 SS<br>
28 </div>
29 </div>
30 <script src="../resources/testharness.js"></script>
31 <script src="../resources/testharnessreport.js"></script>
32 <script>
33 test(() => {
34 // Make the content unfragmented. That should clear all pagination
35 // struts that were needed while we were fragmented.
36 document.body.offsetTop;
37 document.getElementById("multicol").style.columns = "auto";
38
39 assert_equals(document.getElementById("child1").offsetTop, 0);
40 assert_equals(document.getElementById("child2").offsetTop, 20);
41 assert_equals(document.getElementById("child3").offsetTop, 40);
42 assert_equals(document.getElementById("child4").offsetTop, 60);
43 assert_equals(document.getElementById("child5").offsetTop, 80);
44 assert_equals(document.getElementById("child6").offsetTop, 100);
45 assert_equals(document.getElementById("child7").offsetTop, 120);
46 }, "No pagination struts should be left behind.");
47 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698