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

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

Issue 2532573003: Position a float before laying it out. (Closed)
Patch Set: Created 4 years 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/LayoutTests/fragmentation/float-pushed-to-next-fragmentainer-by-floats.html » ('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 a blue square below.</p>
3 <div id="multicol" style="position:relative; columns:2; column-fill:auto; line-h eight:20px; width:100px; height:100px;">
4 <div><br></div>
5 <div id="elm" style="float:left; width:20px; background:blue;">
6 <div><br></div>
7 </div>
8 </div>
9 <script src="../resources/testharness.js"></script>
10 <script src="../resources/testharnessreport.js"></script>
11 <script>
12 test(() => {
13 var multicol = document.getElementById("multicol");
14 var elm = document.getElementById("elm");
15 document.body.offsetTop;
16 multicol.style.height = "30px";
17 assert_equals(elm.offsetTop, 0);
18 assert_equals(elm.offsetHeight, 20);
19 }, "Push float to next column");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fragmentation/float-pushed-to-next-fragmentainer-by-floats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698