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

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

Issue 2512163002: Force re-layout of a float when we just became unfragmented. (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/LayoutBlockFlow.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>There should be green square below, and no red.</p>
3 <div id="multicol" style="position:relative; columns:2; column-fill:auto; height :60px; line-height:20px;">
4 <div style="width:40px;">
5 <div>
6 <div style="height:30px;"></div>
7 <div id="floater" style="float:left; width:100%; orphans:1; widows:1 ; background:red;">
8 <div id="child1" style="background:green;"><br></div>
9 <div id="child2" style="background:green;"><br></div>
10 </div>
11 </div>
12 </div>
13 </div>
14 <div style="clear:both;"></div>
15 <script src="../resources/testharness.js"></script>
16 <script src="../resources/testharnessreport.js"></script>
17 <script>
18 test(() => {
19 var multicol = document.getElementById("multicol");
20 var floater = document.getElementById("floater");
21 var child1 = document.getElementById("child1");
22 var child2 = document.getElementById("child2");
23 document.body.offsetTop;
24 multicol.style.columns = "auto";
25 multicol.style.height = "auto";
26 assert_equals(floater.offsetTop, 30);
27 assert_equals(child1.offsetTop, 30);
28 assert_equals(child1.offsetHeight, 20);
29 assert_equals(child2.offsetTop, 50);
30 assert_equals(child2.offsetHeight, 20);
31 assert_equals(floater.offsetHeight, 40);
32 }, "Become unfragmented with float at fragmentainer boundary");
33 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698