column-auto-repeat-008.html (3938B)
1 <!DOCTYPE html> 2 <title>Auto repeat tracks and min sizes</title> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <meta name="assert" content="This test checks that auto repeat tracks use min size when available to compute the number of tracks."> 5 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com"> 6 <style> 7 .grid-lanes { 8 position: relative; 9 display: grid-lanes; 10 grid-template-columns: repeat(auto-fill, 100px); 11 min-width: 300px; 12 min-height: 200px; 13 float: left; 14 background: pink; 15 } 16 .border { 17 border: 10px solid; 18 } 19 .border-box { 20 box-sizing: border-box; 21 } 22 .item { 23 background: lime; 24 /* Place item on the last column. */ 25 grid-column: -2; 26 width: 100%; 27 height: 200px; 28 } 29 </style> 30 <script src="/resources/testharness.js"></script> 31 <script src="/resources/testharnessreport.js"></script> 32 <script src="/resources/check-layout-th.js"></script> 33 <body onload="checkLayout('.grid-lanes');"> 34 35 <div id="log"></div> 36 37 <div class="grid-lanes" data-expected-width="300" data-expected-height="200"> 38 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 39 </div> 40 41 <div class="grid-lanes" style="width: 200px; height: 100px;" data-expected-width="300" data-expected-height="200"> 42 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 43 </div> 44 45 <div class="grid-lanes" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="200"> 46 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 47 </div> 48 49 <div class="grid-lanes" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="200"> 50 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 51 </div> 52 53 <div class="grid-lanes border" data-expected-width="320" data-expected-height="220"> 54 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 55 </div> 56 57 <div class="grid-lanes border" style="width: 200px; height: 100px;" data-expected-width="320" data-expected-height="220"> 58 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 59 </div> 60 61 <div class="grid-lanes border" style="width: min-content; height: min-content;" data-expected-width="320" data-expected-height="220"> 62 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 63 </div> 64 65 <div class="grid-lanes border" style="width: max-content; height: max-content;" data-expected-width="320" data-expected-height="220"> 66 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 67 </div> 68 69 <div class="grid-lanes border border-box" data-expected-width="320" data-expected-height="220"> 70 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 71 </div> 72 73 <div class="grid-lanes border border-box" style="width: 200px; height: 100px;" data-expected-width="300" data-expected-height="200"> 74 <div class="item" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 75 </div> 76 77 <div class="grid-lanes border border-box" style="width: min-content; height: min-content;" data-expected-width="320" data-expected-height="220"> 78 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 79 </div> 80 81 <div class="grid-lanes border border-box" style="width: max-content; height: max-content;" data-expected-width="320" data-expected-height="220"> 82 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 83 </div> 84 85 </body>