| 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 .gridMinFlexContent { | 5 .gridFlexContent { |
| 6 grid-template-columns: minmax(1fr, 50px); | 6 grid-template-columns: 1fr 1fr; |
| 7 grid-template-rows: 50px; | |
| 8 } | |
| 9 .gridZeroFlexContent { | |
| 10 grid-template-columns: minmax(1fr, 0px); | |
| 11 grid-template-rows: 50px; | 7 grid-template-rows: 50px; |
| 12 } | 8 } |
| 13 .gridMaxFlexContent { | 9 .gridMaxFlexContent { |
| 14 grid-template-columns: minmax(30px, 2fr); | 10 grid-template-columns: minmax(30px, 2fr); |
| 15 grid-template-rows: 50px; | 11 grid-template-rows: 50px; |
| 16 } | 12 } |
| 17 .gridTwoMaxFlexContent { | 13 .gridTwoMaxFlexContent { |
| 18 grid-template-columns: minmax(10px, 1fr) minmax(10px, 2fr); | 14 grid-template-columns: minmax(10px, 1fr) minmax(10px, 2fr); |
| 19 grid-template-rows: 50px; | 15 grid-template-rows: 50px; |
| 20 } | 16 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 46 background-color: yellow; | 42 background-color: yellow; |
| 47 grid-column: 3; | 43 grid-column: 3; |
| 48 grid-row: 1; | 44 grid-row: 1; |
| 49 } | 45 } |
| 50 </style> | 46 </style> |
| 51 <script src="../../resources/check-layout.js"></script> | 47 <script src="../../resources/check-layout.js"></script> |
| 52 <body onload="checkLayout('.grid');"> | 48 <body onload="checkLayout('.grid');"> |
| 53 | 49 |
| 54 <p>Test that resolving auto tracks on grid items works properly.</p> | 50 <p>Test that resolving auto tracks on grid items works properly.</p> |
| 55 | 51 |
| 56 <div style="width: 0px"> | 52 <div class="constrainedContainer" style="position: relative"> |
| 57 <div class="grid gridMinFlexContent"> | 53 <div class="grid gridFlexContent"> |
| 58 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="0"
data-expected-height="50"></div> | 54 <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-
offset-y="0" data-expected-width="30" data-expected-height="50">XXX</div> |
| 55 <div class="sizedToGridArea firstRowSecondColumn" data-offset-x="30" dat
a-offset-y="0" data-expected-width="50" data-expected-height="50">XXXXX</div> |
| 59 </div> | 56 </div> |
| 60 </div> | 57 </div> |
| 61 | 58 |
| 62 <div style="width: 100px"> | |
| 63 <div class="grid gridZeroFlexContent"> | |
| 64 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="0"
data-expected-height="50"></div> | |
| 65 </div> | |
| 66 </div> | |
| 67 | |
| 68 <!-- Allow the extra logical space distribution to occur. --> | |
| 69 <div style="width: 40px; height: 10px"> | |
| 70 <div class="grid gridMinFlexContent"> | |
| 71 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="40
" data-expected-height="50"></div> | |
| 72 </div> | |
| 73 </div> | |
| 74 | |
| 75 <div style="width: 100px; height: 10px;"> | |
| 76 <div class="grid gridMinFlexContent"> | |
| 77 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50
" data-expected-height="50"></div> | |
| 78 </div> | |
| 79 </div> | |
| 80 | |
| 81 <div class="constrainedContainer"> | 59 <div class="constrainedContainer"> |
| 82 <div class="grid gridMaxFlexContent"> | 60 <div class="grid gridMaxFlexContent"> |
| 83 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="30
" data-expected-height="50"></div> | 61 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="30
" data-expected-height="50"></div> |
| 84 </div> | 62 </div> |
| 85 </div> | 63 </div> |
| 86 | 64 |
| 87 <!-- Allow the extra logical space distribution to occur. --> | 65 <!-- Allow the extra logical space distribution to occur. --> |
| 88 <div style="width: 40px; height: 10px"> | 66 <div style="width: 40px; height: 10px"> |
| 89 <div class="grid gridMaxFlexContent"> | 67 <div class="grid gridMaxFlexContent"> |
| 90 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="40
" data-expected-height="50"></div> | 68 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="40
" data-expected-height="50"></div> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 <div style="width: 275px; height: 10px;"> | 160 <div style="width: 275px; height: 10px;"> |
| 183 <div class="grid gridRespectBaseSizeBeforeProportions"> | 161 <div class="grid gridRespectBaseSizeBeforeProportions"> |
| 184 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50
" data-expected-height="50"></div> | 162 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50
" data-expected-height="50"></div> |
| 185 <div class="sizedToGridArea firstRowSecondColumn" data-expected-width="7
5" data-expected-height="50"></div> | 163 <div class="sizedToGridArea firstRowSecondColumn" data-expected-width="7
5" data-expected-height="50"></div> |
| 186 <div class="sizedToGridArea firstRowThirdColumn" data-expected-width="15
0" data-expected-height="50"></div> | 164 <div class="sizedToGridArea firstRowThirdColumn" data-expected-width="15
0" data-expected-height="50"></div> |
| 187 </div> | 165 </div> |
| 188 </div> | 166 </div> |
| 189 | 167 |
| 190 </body> | 168 </body> |
| 191 </html> | 169 </html> |
| OLD | NEW |