OLD | NEW |
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 width: 200px; | 8 width: 200px; |
9 position: relative; | 9 position: relative; |
10 justify-content: start; | 10 justify-content: start; |
11 grid-auto-columns: 157px; | 11 grid-auto-columns: 157px; |
12 grid-auto-rows: 25px; | 12 grid-auto-rows: 25px; |
13 } | 13 } |
14 | 14 |
15 .gridOnlyAutoRepeat { grid-template-columns: repeat(auto-fit, 30px [autobar]); } | 15 .gridOnlyAutoRepeat { grid-template-columns: repeat(auto-fit, 30px [autobar]); } |
16 .gridAutoRepeatAndFixedBefore { grid-template-columns: 10px [foo] 20% [bar] repe
at(auto-fit, [autofoo] 35px); } | 16 .gridAutoRepeatAndFixedBefore { grid-template-columns: 10px [foo] 20% [bar] repe
at(auto-fit, [autofoo] 35px); } |
17 .gridAutoRepeatAndFixedAfter { grid-template-columns: repeat(auto-fit, [first] 3
0px [last]) [foo] minmax(60px, 80px) [bar] minmax(45px, max-content); } | 17 .gridAutoRepeatAndFixedAfter { grid-template-columns: repeat(auto-fit, [first] 3
0px [last]) [foo] minmax(60px, 80px) [bar] minmax(45px, max-content); } |
18 .gridAutoRepeatAndFixed { grid-template-columns: [start] repeat(2, 50px [a]) [mi
ddle] repeat(auto-fit, [autofoo] 15px [autobar]) minmax(5%, 10%) [end]; } | 18 .gridAutoRepeatAndFixed { grid-template-columns: [start] repeat(2, 50px [a]) [mi
ddle] repeat(auto-fit, [autofoo] 15px [autobar]) minmax(5%, 10%) [end]; } |
19 .gridMultipleNames { grid-template-columns: [start] 20px [foo] 50% repeat(auto-f
it, [bar] 20px [start foo]) [foo] 10% [end bar]; } | 19 .gridMultipleNames { grid-template-columns: [start] 20px [foo] 50% repeat(auto-f
it, [bar] 20px [start foo]) [foo] 10% [end bar]; } |
| 20 .gridMultipleTracks { grid-template-columns: [start] 20px repeat(auto-fit, [a] 2
em [b c] 10% [d]) [e] minmax(75px, 1fr) [last]; } |
20 | 21 |
21 .item { background-color: cyan; } | 22 .item { background-color: cyan; } |
| 23 .item:nth-child(2n) { background-color: green; } |
22 | 24 |
23 .gap { grid-column-gap: 20px; } | 25 .gap { grid-column-gap: 20px; } |
24 | 26 |
25 </style> | 27 </style> |
26 | 28 |
27 <script src="../../resources/testharness.js"></script> | 29 <script src="../../resources/testharness.js"></script> |
28 <script src="../../resources/testharnessreport.js"></script> | 30 <script src="../../resources/testharnessreport.js"></script> |
29 <script src="../../resources/check-layout-th.js"></script> | 31 <script src="../../resources/check-layout-th.js"></script> |
30 | 32 |
31 <body onload="checkLayout('.grid')"> | 33 <body onload="checkLayout('.grid')"> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 </div> | 136 </div> |
135 | 137 |
136 <div class="grid gridMultipleNames gap"> | 138 <div class="grid gridMultipleNames gap"> |
137 <div class="item" style="grid-column: bar / foo 2" data-offset-x="160" data
-offset-y="0" data-expected-width="20" data-expected-height="25"></div> | 139 <div class="item" style="grid-column: bar / foo 2" data-offset-x="160" data
-offset-y="0" data-expected-width="20" data-expected-height="25"></div> |
138 </div> | 140 </div> |
139 | 141 |
140 <div class="grid gridMultipleNames gap"> | 142 <div class="grid gridMultipleNames gap"> |
141 <div class="item" style="grid-column: foo / bar 2" data-offset-x="40" data-
offset-y="0" data-expected-width="180" data-expected-height="25"></div> | 143 <div class="item" style="grid-column: foo / bar 2" data-offset-x="40" data-
offset-y="0" data-expected-width="180" data-expected-height="25"></div> |
142 </div> | 144 </div> |
143 | 145 |
| 146 <div class="grid gridMultipleTracks"> |
| 147 <div class="item" style="grid-column: e / last;" data-offset-x="52" data-of
fset-y="0" data-expected-width="148" data-expected-height="25"></div> |
| 148 <div class="item" style="grid-column: start / b;" data-offset-x="0" data-of
fset-y="25" data-expected-width="52" data-expected-height="25"></div> |
| 149 </div> |
| 150 |
| 151 <div class="grid gridMultipleTracks gap"> |
| 152 <div class="item" style="grid-column: c / -1;" data-offset-x="40" data-offs
et-y="0" data-expected-width="160" data-expected-height="25"></div> |
| 153 </div> |
| 154 |
144 </body> | 155 </body> |
OLD | NEW |