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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/overflowing-columns-large-gaps.html

Issue 1927283002: Improve multicol overflow rect calculation when column width is 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explain what goes on in the test. Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/overflowing-columns-large-gaps-expected.txt » ('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 <script src="../../resources/check-layout.js"></script>
3 <p>There should be a horizontal scrollbar below.</p>
4
5 <!--
6 The specified, computed, and used value of column-count is 2, but the
7 actual column-count will be larger, because the column height is only 40px,
8 and we have 200px of content. So we'll get ceil(200/40) = 5 columns.
9
10 Used / actual column-width becomes 0, because the gap eats everything.
11
12 So we get:
13 Column 0: +0px = 0px
14 Gap between column 0 and 1: +200px = 200px
15 Column 1: +0px = 200px
16 Gap between column 1 and 2: +200px = 400px
17 Column 2: +0px = 400px
18 Gap between column 2 and 3: +200px = 600px
19 Column 3: +0px = 600px
20 Gap between column 3 and 4: +200px = 800px
21 Column 4: +0px = 800px
22 -->
23
24 <div id="container" style="overflow:auto; width:400px;" data-expected-scroll-wid th="800">
25 <div style="columns:2; column-gap:200px; column-fill:auto; width:100px; heig ht:40px;">
26 <div style="height:200px;"></div>
27 </div>
28 </div>
29 <script>
30 checkLayout("#container");
31 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/overflowing-columns-large-gaps-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698