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

Side by Side Diff: third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-inline-float.html

Issue 2445193007: Add a couple of regression tests for float fragmentation. (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 | « third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float.html ('k') | no next file » | 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>body { overflow:scroll; }</style>
3 <p>There should be a hotpink square in the bottom left corner of a olive rectang le.</p>
4 <div id="multicol" style="position:relative; columns:2; column-fill:auto; orphan s:2; widows:2; line-height:20px; height:45px; background:olive;">
5 <br>
6 <div id="elm" style="float:left; width:40px; background:hotpink;"><br><br></ div>
7 </div>
8 <script src="../resources/testharness.js"></script>
9 <script src="../resources/testharnessreport.js"></script>
10 <script>
11 test(() => {
12 var multicol = document.getElementById("multicol");
13 var elm = document.getElementById("elm");
14 assert_equals(elm.offsetTop, 0);
15 assert_equals(elm.offsetHeight, 40);
16 multicol.style.height = "60px";
17 // Now there's room for the float in the first column
18 assert_equals(elm.offsetTop, 20);
19 assert_equals(elm.offsetHeight, 40);
20 }, "No crash or assertion failure.");
21 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-block-float.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698