OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .gridMinMaxContent { | 5 .gridMinMaxContent { |
6 grid-template-columns: minmax(max-content, 50px); | 6 grid-template-columns: minmax(max-content, 50px); |
7 grid-template-rows: 60px; | 7 grid-template-rows: 60px; |
8 } | 8 } |
9 | 9 |
10 .gridMaxMaxContent { | 10 .gridMaxMaxContent { |
11 grid-template-columns: minmax(30px, max-content); | 11 grid-template-columns: minmax(30px, max-content); |
12 grid-template-rows: 20px; | 12 grid-template-rows: 20px; |
13 } | 13 } |
14 | 14 |
15 .firstRowFirstColumn { | 15 .firstRowFirstColumn { |
16 font: 10px/1 Ahem; | 16 font: 10px/1 Ahem; |
17 /* Make us fit our grid area. */ | 17 /* Make us fit our grid area. */ |
18 width: 100%; | 18 width: 100%; |
19 height: 100%; | 19 height: 100%; |
20 } | 20 } |
21 | |
22 .verticalRL { | |
23 -webkit-writing-mode: vertical-rl; | |
24 } | |
25 </style> | 21 </style> |
26 <script src="../../resources/check-layout.js"></script> | 22 <script src="../../resources/check-layout.js"></script> |
27 <body onload="checkLayout('.gridMinMaxContent'); checkLayout('.gridMaxMaxContent
')"> | 23 <body onload="checkLayout('.gridMinMaxContent'); checkLayout('.gridMaxMaxContent
')"> |
28 | 24 |
29 <p>Test that resolving minmax function with max-content on grid items works prop
erly.</p> | 25 <p>Test that resolving minmax function with max-content on grid items works prop
erly.</p> |
30 | 26 |
31 <div class="constrainedContainer"> | 27 <div class="constrainedContainer"> |
32 <div class="grid gridMinMaxContent"> | 28 <div class="grid gridMinMaxContent"> |
33 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="60">XXX</div> | 29 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="60">XXX</div> |
34 </div> | 30 </div> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 85 |
90 <div style="width: 100px; height: 20px"> | 86 <div style="width: 100px; height: 20px"> |
91 <div class="grid gridMaxMaxContent"> | 87 <div class="grid gridMaxMaxContent"> |
92 <!-- The 'max' logical width ends up being smaller than the 'min' so per
the spec we ignore the 'max'. --> | 88 <!-- The 'max' logical width ends up being smaller than the 'min' so per
the spec we ignore the 'max'. --> |
93 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="20">XX</div> | 89 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="20">XX</div> |
94 </div> | 90 </div> |
95 </div> | 91 </div> |
96 | 92 |
97 </body> | 93 </body> |
98 </html> | 94 </html> |
OLD | NEW |