OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | |
4 if (window.testRunner) | |
5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | |
6 </script> | |
7 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
8 <style> | 4 <style> |
9 .gridMinMaxContent { | 5 .gridMinMaxContent { |
10 grid-template-columns: minmax(max-content, 50px); | 6 grid-template-columns: minmax(max-content, 50px); |
11 grid-template-rows: 60px; | 7 grid-template-rows: 60px; |
12 } | 8 } |
13 | 9 |
14 .gridMaxMaxContent { | 10 .gridMaxMaxContent { |
15 grid-template-columns: minmax(30px, max-content); | 11 grid-template-columns: minmax(30px, max-content); |
16 grid-template-rows: 20px; | 12 grid-template-rows: 20px; |
17 } | 13 } |
18 | 14 |
19 .firstRowFirstColumn { | 15 .firstRowFirstColumn { |
20 font: 10px/1 Ahem; | 16 font: 10px/1 Ahem; |
21 /* Make us fit our grid area. */ | 17 /* Make us fit our grid area. */ |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 89 |
94 <div style="width: 100px; height: 20px"> | 90 <div style="width: 100px; height: 20px"> |
95 <div class="grid gridMaxMaxContent"> | 91 <div class="grid gridMaxMaxContent"> |
96 <!-- The 'max' logical width ends up being smaller than the 'min' so per
the spec we ignore the 'max'. --> | 92 <!-- The 'max' logical width ends up being smaller than the 'min' so per
the spec we ignore the 'max'. --> |
97 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="20">XX</div> | 93 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-
height="20">XX</div> |
98 </div> | 94 </div> |
99 </div> | 95 </div> |
100 | 96 |
101 </body> | 97 </body> |
102 </html> | 98 </html> |
OLD | NEW |