Changeset 190308 in webkit for trunk/LayoutTests/fast/css-grid-layout/flex-content-resolution-rows.html
- Timestamp:
- Sep 29, 2015, 5:32:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/css-grid-layout/flex-content-resolution-rows.html
r168416 r190308 7 7 -webkit-grid-template-rows: minmax(1fr, 50px); 8 8 } 9 .gridZeroFlexContent { 10 -webkit-grid-template-columns: 50px; 11 -webkit-grid-template-rows: minmax(1fr, 0px); 12 } 9 13 .gridMaxFlexContent { 10 14 -webkit-grid-template-columns: 50px; … … 18 22 -webkit-grid-template-columns: 50px; 19 23 -webkit-grid-template-rows: minmax(10px, 0.5fr) minmax(10px, 2fr); 24 } 25 .gridRespectBaseSize { 26 -webkit-grid-template-columns: 50px; 27 -webkit-grid-template-rows: minmax(75px, 1fr) minmax(0px, 2fr); 28 } 29 .gridRespectProportions { 30 -webkit-grid-template-columns: 50px; 31 -webkit-grid-template-rows: minmax(25px, .25fr) minmax(0px, .5fr) minmax(0px, 2fr); 32 } 33 .gridRespectBaseSizeProportions { 34 -webkit-grid-template-columns: 50px; 35 -webkit-grid-template-rows: minmax(50px, .25fr) minmax(0px, .5fr) minmax(0px, 1fr); 36 } 37 .gridRespectBaseSizeBeforeProportions { 38 -webkit-grid-template-columns: 50px; 39 -webkit-grid-template-rows: minmax(50px, .25fr) minmax(0px, .5fr) minmax(0px, 1fr); 40 } 41 .thirdRowFirstColumn { 42 background-color: yellow; 43 -webkit-grid-column: 1; 44 -webkit-grid-row: 3; 20 45 } 21 46 </style> … … 32 57 33 58 <div style="height: 0px"> 59 <div class="grid gridZeroFlexContent"> 60 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="0"></div> 61 </div> 62 </div> 63 64 <div style="height: 0px"> 34 65 <div class="grid gridMinFlexContent"> 35 66 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> … … 138 169 </div> 139 170 171 <!-- We normalize fraction flex factors to 1, so we don't keep exact proportions with >1 factors. --> 140 172 <div class="constrainedContainer"> 141 173 <div class="grid gridTwoDoubleMaxFlexContent"> 142 174 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="10"></div> 143 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height=" 40"></div>175 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="20"></div> 144 176 </div> 145 177 </div> … … 153 185 </div> 154 186 187 <!-- We normalize fraction flex factors to 1, so we don't keep exact proportions with >1 factors. --> 155 188 <div style="width: 10px; height: 60px"> 156 189 <div class="grid gridTwoDoubleMaxFlexContent"> 157 190 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="10"></div> 158 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height=" 40"></div>191 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="20"></div> 159 192 </div> 160 193 </div> … … 167 200 </div> 168 201 202 <!-- We normalize fraction flex factors to 1, so we don't keep exact proportions with >1 factors. --> 169 203 <div style="width: 10px; height: 120px;"> 170 204 <div class="grid gridTwoDoubleMaxFlexContent"> 171 205 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="10"></div> 172 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="40"></div> 206 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="20"></div> 207 </div> 208 </div> 209 210 <!-- Flex track lengths must be proportional to their flex factors.. --> 211 <div style="width: 10px; height: 275px;"> 212 <div class="grid gridRespectProportions" style="height: 100%;"> 213 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="25"></div> 214 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 215 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="200"></div> 216 </div> 217 </div> 218 219 <div style="width: 10px; height: 275px;"> 220 <div class="grid gridRespectProportions"> 221 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="25"></div> 222 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="13"></div> 223 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 224 </div> 225 </div> 226 227 <!-- Flex track lengths must be proportional but still respecting their base sizes. --> 228 <div style="width: 10px; height: 350px;"> 229 <div class="grid gridRespectBaseSizeProportions" style="height: 100%;"> 230 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 231 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="100"></div> 232 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="200"></div> 233 </div> 234 </div> 235 236 <div style="width: 10px; height: 350px;"> 237 <div class="grid gridRespectBaseSizeProportions"> 238 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 239 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="25"></div> 240 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 241 </div> 242 </div> 243 244 <!-- Not enough space to repsect proportions, because minTrackBreadh it's a harder requirement --> 245 <div style="width: 10px; height: 275px;"> 246 <div class="grid gridRespectBaseSizeBeforeProportions" style="height: 100%;"> 247 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 248 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="75"></div> 249 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="150"></div> 250 </div> 251 </div> 252 253 <div style="width: 10px; height: 275px;"> 254 <div class="grid gridRespectBaseSizeBeforeProportions"> 255 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 256 <div class="sizedToGridArea secondRowFirstColumn" data-expected-width="50" data-expected-height="25"></div> 257 <div class="sizedToGridArea thirdRowFirstColumn" data-expected-width="50" data-expected-height="50"></div> 173 258 </div> 174 259 </div>
Note:
See TracChangeset
for help on using the changeset viewer.