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