|
Lines 103-108
a/LayoutTests/fast/css-grid-layout/grid-content-sized-columns-resolution.html_sec1
|
| 103 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
103 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 104 |
</div> |
104 |
</div> |
| 105 |
|
105 |
|
|
|
106 |
<!-- Check that items are processed by ascending span instead of going track by track forbidding extra space distribution. --> |
| 107 |
<div class="constrainedContainer"> |
| 108 |
<div class="grid gridMinContentFixedAndAuto" id="gridMinContentFixedAndAutoUnsortedConstrained"> |
| 109 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 110 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
|
| 114 |
<div class="constrainedContainer"> |
| 115 |
<div class="grid gridAutoAndAuto" id="gridAutoAndAutoUnsortedConstrained"> |
| 116 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 117 |
<div class="firstRowSecondColumn">XXX</div> |
| 118 |
</div> |
| 119 |
</div> |
| 120 |
|
| 121 |
<div class="constrainedContainer"> |
| 122 |
<div class="grid gridMinContentAndMinContentFixed" id="gridMinContentAndMinContentFixedUnsortedConstrained"> |
| 123 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 124 |
<div class="firstRowBothColumn">XX XX XX</div> |
| 125 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 126 |
</div> |
| 127 |
</div> |
| 128 |
|
| 129 |
<div class="constrainedContainer"> |
| 130 |
<div class="grid gridMaxContentAndMinContent" id="gridMaxContentAndMinContentUnsortedConstrained"> |
| 131 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 132 |
<div class="firstRowSecondColumn">XXXXXXX</div> |
| 133 |
</div> |
| 134 |
</div> |
| 135 |
|
| 136 |
<div class="constrainedContainer"> |
| 137 |
<div class="grid gridFixedMinContentAndMaxContent" id="gridFixedMinContentAndMaxContentUnsortedConstrained"> |
| 138 |
<div class="firstRowBothColumn">XXXXX XX</div> |
| 139 |
<div class="firstRowSecondColumn">XXX</div> |
| 140 |
<div class="firstRowSecondColumn">XXXXX</div> |
| 141 |
</div> |
| 142 |
</div> |
| 143 |
|
| 144 |
<div class="constrainedContainer"> |
| 145 |
<div class="grid gridFixedMaxContentAndMinContent" id="gridFixedMaxContentAndMinContentUnsortedConstrained"> |
| 146 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 147 |
<div class="firstRowBothColumn">X X</div> |
| 148 |
<div class="firstRowSecondColumn">XXXX</div> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
|
| 152 |
<div class="constrainedContainer"> |
| 153 |
<div class="grid gridMinContentAndMaxContentFixed" id="gridMinContentAndMaxContentFixedUnsortedConstrained"> |
| 154 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 155 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 156 |
</div> |
| 157 |
</div> |
| 158 |
|
| 159 |
<div class="constrainedContainer"> |
| 160 |
<div class="grid gridMaxContentFixedAndAuto" id="gridMaxContentFixedAndAutoUnsortedConstrained"> |
| 161 |
<div class="firstRowBothColumn">XX XX</div> |
| 162 |
<div class="firstRowSecondColumn">XXXX</div> |
| 163 |
<div class="firstRowSecondColumn">XXX XXX</div> |
| 164 |
</div> |
| 165 |
</div> |
| 166 |
|
| 167 |
<div class="constrainedContainer"> |
| 168 |
<div class="grid gridAutoMinContent" id="gridAutoMinContentUnsortedConstrained"> |
| 169 |
<div class="firstRowBothColumn">XX XX XX XX</div> |
| 170 |
<div class="firstRowSecondColumn">XXXXXX XXXXXX</div> |
| 171 |
</div> |
| 172 |
</div> |
| 173 |
|
| 174 |
<div class="constrainedContainer"> |
| 175 |
<div class="grid gridAutoMaxContent" id="gridAutoMaxContentUnsortedConstrained"> |
| 176 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 177 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 178 |
<div class="firstRowSecondColumn">XXXXX</div> |
| 179 |
</div> |
| 180 |
</div> |
| 181 |
|
| 182 |
<div class="constrainedContainer"> |
| 183 |
<div class="grid gridMaxContentAndMinContentFixed" id="gridMaxContentAndMinContentFixedUnsortedConstrained"> |
| 184 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 185 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 186 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 187 |
<div class="firstRowSecondColumn">XX</div> |
| 188 |
</div> |
| 189 |
</div> |
| 190 |
|
| 191 |
<div class="constrainedContainer"> |
| 192 |
<div class="grid gridMaxContentAndMaxContentFixed" id="gridMaxContentAndMaxContentFixedUnsortedConstrained"> |
| 193 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 194 |
<div class="firstRowBothColumn">XX XX XX XX</div> |
| 195 |
<div class="firstRowSecondColumn">XXXXXXX</div> |
| 196 |
</div> |
| 197 |
</div> |
| 198 |
|
| 199 |
<!-- Check that items are processed by ascending span instead of going track by track allowing extra space distribution. --> |
| 200 |
<div class="grid gridMinContentFixedAndAuto" id="gridMinContentFixedAndAutoUnsorted"> |
| 201 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 202 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 203 |
</div> |
| 204 |
|
| 205 |
<div class="grid gridAutoAndAuto" id="gridAutoAndAutoUnsorted"> |
| 206 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 207 |
<div class="firstRowSecondColumn">XXX</div> |
| 208 |
</div> |
| 209 |
|
| 210 |
<div class="grid gridMinContentAndMinContentFixed" id="gridMinContentAndMinContentFixedUnsorted"> |
| 211 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 212 |
<div class="firstRowBothColumn">XX XX XX XX</div> |
| 213 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 214 |
</div> |
| 215 |
|
| 216 |
<div class="grid gridMaxContentAndMinContent" id="gridMaxContentAndMinContentUnsorted"> |
| 217 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 218 |
<div class="firstRowSecondColumn">XXXXXXX</div> |
| 219 |
</div> |
| 220 |
|
| 221 |
<div class="grid gridFixedMinContentAndMaxContent" id="gridFixedMinContentAndMaxContentUnsorted"> |
| 222 |
<div class="firstRowBothColumn">XXXXX XX</div> |
| 223 |
<div class="firstRowSecondColumn">XXX</div> |
| 224 |
<div class="firstRowSecondColumn">XXXXX</div> |
| 225 |
</div> |
| 226 |
|
| 227 |
<div class="grid gridFixedMaxContentAndMinContent" id="gridFixedMaxContentAndMinContentUnsorted"> |
| 228 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 229 |
<div class="firstRowBothColumn">X X</div> |
| 230 |
<div class="firstRowSecondColumn">XXXX</div> |
| 231 |
</div> |
| 232 |
|
| 233 |
<div class="grid gridMinContentAndMaxContentFixed" id="gridMinContentAndMaxContentFixedUnsorted"> |
| 234 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 235 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 236 |
</div> |
| 237 |
|
| 238 |
<div class="grid gridMaxContentFixedAndAuto" id="gridMaxContentFixedAndAutoUnsorted"> |
| 239 |
<div class="firstRowBothColumn">XX XX</div> |
| 240 |
<div class="firstRowSecondColumn">XXXX</div> |
| 241 |
<div class="firstRowSecondColumn">XXX XXX</div> |
| 242 |
</div> |
| 243 |
|
| 244 |
<div class="grid gridAutoMinContent" id="gridAutoMinContentUnsorted"> |
| 245 |
<div class="firstRowBothColumn">XX XX XX XX</div> |
| 246 |
<div class="firstRowSecondColumn">XXXXXX XXXXXX</div> |
| 247 |
</div> |
| 248 |
|
| 249 |
<div class="grid gridAutoMaxContent" id="gridAutoMaxContentUnsorted"> |
| 250 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 251 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 252 |
<div class="firstRowSecondColumn">XXXXX</div> |
| 253 |
</div> |
| 254 |
|
| 255 |
<div class="grid gridMaxContentAndMinContentFixed" id="gridMaxContentAndMinContentFixedUnsorted"> |
| 256 |
<div class="firstRowBothColumn">XXX XXX</div> |
| 257 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 258 |
<div class="firstRowSecondColumn">XXXX XXXX</div> |
| 259 |
<div class="firstRowSecondColumn">XX</div> |
| 260 |
</div> |
| 261 |
|
| 262 |
<div class="grid gridMaxContentAndMaxContentFixed" id="gridMaxContentAndMaxContentFixedUnsorted"> |
| 263 |
<div class="firstRowBothColumn">XXXX XXXX</div> |
| 264 |
<div class="firstRowBothColumn">XX XX XX XX</div> |
| 265 |
<div class="firstRowSecondColumn">XXXXXXX</div> |
| 266 |
</div> |
| 267 |
|
| 106 |
<!-- The next four force the grid to grow only a particular subset of tracks above the limits --> |
268 |
<!-- The next four force the grid to grow only a particular subset of tracks above the limits --> |
| 107 |
<div class="constrainedContainer"> |
269 |
<div class="constrainedContainer"> |
| 108 |
<div class="grid gridMinContentFixedAndAuto" id="gridMinContentFixedAndAutoAboveLimits"> |
270 |
<div class="grid gridMinContentFixedAndAuto" id="gridMinContentFixedAndAutoAboveLimits"> |
|
Lines 151-156
testGridColumnsValues("gridAutoMaxContent", "20px 70px");
a/LayoutTests/fast/css-grid-layout/grid-content-sized-columns-resolution.html_sec2
|
| 151 |
testGridColumnsValues("gridMaxContentAndMinContentFixed", "70px 20px"); |
313 |
testGridColumnsValues("gridMaxContentAndMinContentFixed", "70px 20px"); |
| 152 |
testGridColumnsValues("gridMaxContentAndMaxContentFixed", "55px 35px"); |
314 |
testGridColumnsValues("gridMaxContentAndMaxContentFixed", "55px 35px"); |
| 153 |
|
315 |
|
|
|
316 |
debug(""); |
| 317 |
debug("Check that items are processed by ascending span to compute track breadths forbidding extra space distribution."); |
| 318 |
testGridColumnsValues("gridMinContentFixedAndAutoUnsortedConstrained", "0px 40px"); |
| 319 |
testGridColumnsValues("gridAutoAndAutoUnsortedConstrained", "5px 35px"); |
| 320 |
testGridColumnsValues("gridMinContentAndMinContentFixedUnsortedConstrained", "0px 40px"); |
| 321 |
testGridColumnsValues("gridMaxContentAndMinContentUnsortedConstrained", "0px 70px"); |
| 322 |
testGridColumnsValues("gridFixedMinContentAndMaxContentUnsortedConstrained", "10px 70px"); |
| 323 |
testGridColumnsValues("gridFixedMaxContentAndMinContentUnsortedConstrained", "10px 40px"); |
| 324 |
testGridColumnsValues("gridMinContentAndMaxContentFixedUnsortedConstrained", "0px 90px"); |
| 325 |
testGridColumnsValues("gridMaxContentFixedAndAutoUnsortedConstrained", "10px 40px"); |
| 326 |
testGridColumnsValues("gridAutoMinContentUnsortedConstrained", "0px 60px"); |
| 327 |
testGridColumnsValues("gridAutoMaxContentUnsortedConstrained", "0px 90px"); |
| 328 |
testGridColumnsValues("gridMaxContentAndMinContentFixedUnsortedConstrained", "50px 40px"); |
| 329 |
testGridColumnsValues("gridMaxContentAndMaxContentFixedUnsortedConstrained", "40px 70px"); |
| 330 |
|
| 331 |
debug(""); |
| 332 |
debug("Check that items are processed by ascending span to compute track breadths allowing extra space distribution."); |
| 333 |
testGridColumnsValues("gridMinContentFixedAndAutoUnsorted", "15px 90px"); |
| 334 |
testGridColumnsValues("gridAutoAndAutoUnsorted", "30px 60px"); |
| 335 |
testGridColumnsValues("gridMinContentAndMinContentFixedUnsorted", "10px 40px"); |
| 336 |
testGridColumnsValues("gridMaxContentAndMinContentUnsorted", "0px 70px"); |
| 337 |
testGridColumnsValues("gridFixedMinContentAndMaxContentUnsorted", "10px 70px"); |
| 338 |
testGridColumnsValues("gridFixedMaxContentAndMinContentUnsorted", "50px 40px"); |
| 339 |
testGridColumnsValues("gridMinContentAndMaxContentFixedUnsorted", "10px 90px"); |
| 340 |
testGridColumnsValues("gridMaxContentFixedAndAutoUnsorted", "15px 70px"); |
| 341 |
testGridColumnsValues("gridAutoMinContentUnsorted", "50px 60px"); |
| 342 |
testGridColumnsValues("gridAutoMaxContentUnsorted", "0px 90px"); |
| 343 |
testGridColumnsValues("gridMaxContentAndMinContentFixedUnsorted", "55px 40px"); |
| 344 |
testGridColumnsValues("gridMaxContentAndMaxContentFixedUnsorted", "75px 70px"); |
| 345 |
|
| 154 |
testGridColumnsValues("gridMinContentFixedAndAutoAboveLimits", "15px 95px"); |
346 |
testGridColumnsValues("gridMinContentFixedAndAutoAboveLimits", "15px 95px"); |
| 155 |
testGridColumnsValues("gridMaxContentFixedAndAutoAboveLimits", "65px 85px"); |
347 |
testGridColumnsValues("gridMaxContentFixedAndAutoAboveLimits", "65px 85px"); |
| 156 |
testGridColumnsValues("gridMinContentFixedAndFixedFixedAndAuto", "20px 20px 60px"); |
348 |
testGridColumnsValues("gridMinContentFixedAndFixedFixedAndAuto", "20px 20px 60px"); |