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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-rows.html

Issue 2161003003: [css-grid] repeat() syntax should take a <track-list> argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <link href="resources/grid.css" rel="stylesheet"> 3 <link href="resources/grid.css" rel="stylesheet">
4 <style> 4 <style>
5 5
6 .grid { 6 .grid {
7 border: 2px solid magenta; 7 border: 2px solid magenta;
8 height: 200px; 8 height: 200px;
9 width: 25px; 9 width: 25px;
10 align-content: start; 10 align-content: start;
11 grid-auto-rows: 157px; 11 grid-auto-rows: 157px;
12 grid-auto-columns: 25px; 12 grid-auto-columns: 25px;
13 13
14 float: left; 14 float: left;
15 position: relative; 15 position: relative;
16 margin-right: 2px; 16 margin-right: 2px;
17 } 17 }
18 18
19 .gridOnlyAutoRepeat { grid-template-rows: repeat(auto-fit, 30px [autobar]); } 19 .gridOnlyAutoRepeat { grid-template-rows: repeat(auto-fit, 30px [autobar]); }
20 .gridAutoRepeatAndFixedBefore { grid-template-rows: 10px [foo] 20% [bar] repeat( auto-fit, [autofoo] 35px); } 20 .gridAutoRepeatAndFixedBefore { grid-template-rows: 10px [foo] 20% [bar] repeat( auto-fit, [autofoo] 35px); }
21 .gridAutoRepeatAndFixedAfter { grid-template-rows: repeat(auto-fit, [first] 30px [last]) [foo] minmax(60px, 80px) [bar] minmax(45px, max-content); } 21 .gridAutoRepeatAndFixedAfter { grid-template-rows: repeat(auto-fit, [first] 30px [last]) [foo] minmax(60px, 80px) [bar] minmax(45px, max-content); }
22 .gridAutoRepeatAndFixed { grid-template-rows: [start] repeat(2, 50px [a]) [middl e] repeat(auto-fit, [autofoo] 15px [autobar]) minmax(5%, 10%) [end]; } 22 .gridAutoRepeatAndFixed { grid-template-rows: [start] repeat(2, 50px [a]) [middl e] repeat(auto-fit, [autofoo] 15px [autobar]) minmax(5%, 10%) [end]; }
23 .gridMultipleNames { grid-template-rows: [start] 20px [foo] 50% repeat(auto-fit, [bar] 20px [start foo]) [foo] 10% [end bar]; } 23 .gridMultipleNames { grid-template-rows: [start] 20px [foo] 50% repeat(auto-fit, [bar] 20px [start foo]) [foo] 10% [end bar]; }
24 .gridMultipleTracks { grid-template-rows: [start] 20px repeat(auto-fit, [a] 2em [b c] 10% [d]) [e] minmax(75px, 1fr) [last]; }
24 25
25 .item { background-color: cyan; } 26 .item { background-color: cyan; }
27 .item:nth-child(2n) { background-color: green; }
26 28
27 .gap { grid-row-gap: 20px; } 29 .gap { grid-row-gap: 20px; }
28 30
29 </style> 31 </style>
30 32
31 <script src="../../resources/testharness.js"></script> 33 <script src="../../resources/testharness.js"></script>
32 <script src="../../resources/testharnessreport.js"></script> 34 <script src="../../resources/testharnessreport.js"></script>
33 <script src="../../resources/check-layout-th.js"></script> 35 <script src="../../resources/check-layout-th.js"></script>
34 36
35 <body onload="checkLayout('.grid')"> 37 <body onload="checkLayout('.grid')">
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 </div> 140 </div>
139 141
140 <div class="grid gridMultipleNames gap"> 142 <div class="grid gridMultipleNames gap">
141 <div class="item" style="grid-row: bar / foo 2" data-offset-y="160" data-of fset-x="0" data-expected-height="20" data-expected-width="25"></div> 143 <div class="item" style="grid-row: bar / foo 2" data-offset-y="160" data-of fset-x="0" data-expected-height="20" data-expected-width="25"></div>
142 </div> 144 </div>
143 145
144 <div class="grid gridMultipleNames gap"> 146 <div class="grid gridMultipleNames gap">
145 <div class="item" style="grid-row: foo / bar 2" data-offset-y="40" data-off set-x="0" data-expected-height="180" data-expected-width="25"></div> 147 <div class="item" style="grid-row: foo / bar 2" data-offset-y="40" data-off set-x="0" data-expected-height="180" data-expected-width="25"></div>
146 </div> 148 </div>
147 149
150 <div class="grid gridMultipleTracks">
151 <div class="item" style="grid-row: e / last;" data-offset-y="52" data-offse t-x="0" data-expected-height="148" data-expected-width="25"></div>
152 <div class="item" style="grid-row: start / b;" data-offset-y="0" data-offse t-x="0" data-expected-height="52" data-expected-width="25"></div>
153 </div>
154
155 <div class="grid gridMultipleTracks gap">
156 <div class="item" style="grid-row: c / -1;" data-offset-y="40" data-offset- x="0" data-expected-height="160" data-expected-width="25"></div>
157 </div>
158
148 </body> 159 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698