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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/zero-height-with-children.html

Issue 2874933005: Distinguish between row (fragmentainer group) height and column (fragmentainer) height. (Closed)
Patch Set: Created 3 years, 7 months 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 .multicol { position:relative; margin-bottom:1px; columns:5; width:20px; col umn-gap:0; column-fill:auto; height:0; background:red; }
4 .multicol > div { height:1px; background:blue; }
5 </style>
6 <p>There should be a small blue square below.</p>
7 <div style="display:flow-root; position:relative;">
8 <div class="multicol"><div></div><div></div></div>
9 <div class="multicol"><div></div><div></div></div>
10 <div class="multicol"><div></div><div></div></div>
11 <div class="multicol"><div></div><div></div></div>
12 <div class="multicol"><div></div><div></div></div>
13 <div class="multicol"><div></div><div></div></div>
14 <div class="multicol"><div></div><div></div></div>
15 <div class="multicol"><div></div><div></div></div>
16 </div>
17 <script src="../../resources/testharness.js"></script>
18 <script src="../../resources/testharnessreport.js"></script>
19 <script>
20 test(() => {
21 var multicols = document.getElementsByClassName("multicol");
22 var offset = 0;
23 for (var i = 0; i < multicols.length; i++) {
24 var multicol = multicols[i];
25 assert_equals(multicol.firstChild.offsetLeft, 0);
26 assert_equals(multicol.firstChild.nextSibling.offsetLeft, 4);
27 assert_equals(multicol.offsetTop, offset);
28 offset++;
29 }
30 }, "Zero-height multicol should force 1px tall columns");
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698