column-auto-repeat-009.html (1825B)
1 <!DOCTYPE html> 2 <title>Auto repeat tracks and percentage 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 percentage 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: 50%; 12 min-height: 80%; 13 float: left; 14 background: pink; 15 } 16 .wrapper { 17 width: 600px; 18 height: 250px; 19 } 20 .item { 21 background: lime; 22 /* Place item on the last column. */ 23 grid-column: -2; 24 width: 100%; 25 height: 200px; 26 } 27 </style> 28 <script src="/resources/testharness.js"></script> 29 <script src="/resources/testharnessreport.js"></script> 30 <script src="/resources/check-layout-th.js"></script> 31 <body onload="checkLayout('.grid-lanes');"> 32 33 <div id="log"></div> 34 35 <div class="wrapper"> 36 <div class="grid-lanes" style="width: 200px; height: 100px;" data-expected-width="300" data-expected-height="200"> 37 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 38 </div> 39 </div> 40 41 <div class="wrapper"> 42 <div class="grid-lanes" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="200"> 43 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 44 </div> 45 </div> 46 47 <div class="wrapper"> 48 <div class="grid-lanes" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="200"> 49 <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div> 50 </div> 51 </div> 52 53 </body>