| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) | 4 if (window.testRunner) |
| 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); |
| 6 </script> | 6 </script> |
| 7 <link href="resources/grid.css" rel="stylesheet"> | 7 <link href="resources/grid.css" rel="stylesheet"> |
| 8 <style> | 8 <style> |
| 9 .gridMinFlexContent { | 9 .gridMinFlexContent { |
| 10 grid-definition-columns: minmax(1fr, 50px); | 10 grid-template-columns: minmax(1fr, 50px); |
| 11 grid-definition-rows: 50px; | 11 grid-template-rows: 50px; |
| 12 } | 12 } |
| 13 .gridMaxFlexContent { | 13 .gridMaxFlexContent { |
| 14 grid-definition-columns: minmax(30px, 2fr); | 14 grid-template-columns: minmax(30px, 2fr); |
| 15 grid-definition-rows: 50px; | 15 grid-template-rows: 50px; |
| 16 } | 16 } |
| 17 .gridTwoMaxFlexContent { | 17 .gridTwoMaxFlexContent { |
| 18 grid-definition-columns: minmax(10px, 1fr) minmax(10px, 2fr); | 18 grid-template-columns: minmax(10px, 1fr) minmax(10px, 2fr); |
| 19 grid-definition-rows: 50px; | 19 grid-template-rows: 50px; |
| 20 } | 20 } |
| 21 .gridTwoDoubleMaxFlexContent { | 21 .gridTwoDoubleMaxFlexContent { |
| 22 grid-definition-columns: minmax(10px, 0.5fr) minmax(10px, 2fr); | 22 grid-template-columns: minmax(10px, 0.5fr) minmax(10px, 2fr); |
| 23 grid-definition-rows: 50px; | 23 grid-template-rows: 50px; |
| 24 } | 24 } |
| 25 .gridIgnoreSecondGridItem { | 25 .gridIgnoreSecondGridItem { |
| 26 grid-definition-columns: minmax(300px, 3fr) minmax(150px, 1fr); | 26 grid-template-columns: minmax(300px, 3fr) minmax(150px, 1fr); |
| 27 grid-definition-rows: 50px; | 27 grid-template-rows: 50px; |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 <script src="../../resources/check-layout.js"></script> | 30 <script src="../../resources/check-layout.js"></script> |
| 31 <body onload="checkLayout('.grid');"> | 31 <body onload="checkLayout('.grid');"> |
| 32 | 32 |
| 33 <p>Test that resolving auto tracks on grid items works properly.</p> | 33 <p>Test that resolving auto tracks on grid items works properly.</p> |
| 34 | 34 |
| 35 <div style="width: 0px"> | 35 <div style="width: 0px"> |
| 36 <div class="grid gridMinFlexContent"> | 36 <div class="grid gridMinFlexContent"> |
| 37 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="0"
data-expected-height="50"></div> | 37 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="0"
data-expected-height="50"></div> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 <!-- Custom test for a corner case. --> | 120 <!-- Custom test for a corner case. --> |
| 121 <div style="width: 570px; height: 10px;"> | 121 <div style="width: 570px; height: 10px;"> |
| 122 <div class="grid gridIgnoreSecondGridItem"> | 122 <div class="grid gridIgnoreSecondGridItem"> |
| 123 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="42
0" data-expected-height="50"></div> | 123 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="42
0" data-expected-height="50"></div> |
| 124 <div class="sizedToGridArea firstRowSecondColumn" data-expected-width="1
50" data-expected-height="50"></div> | 124 <div class="sizedToGridArea firstRowSecondColumn" data-expected-width="1
50" data-expected-height="50"></div> |
| 125 </div> | 125 </div> |
| 126 </div> | 126 </div> |
| 127 | 127 |
| 128 </body> | 128 </body> |
| 129 </html> | 129 </html> |
| OLD | NEW |