column-item-minmax-img-001.html (815B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Image within a grid-lanes with a size that depends on the containing block should stretch, but not size the grid tracks</title> 4 <link rel="author" href="mailto:almaher@microsoft.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-stretch"> 6 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-single-span-items"> 7 <link rel="match" href="../../../../reference/ref-filled-green-100px-square.xht"> 8 <style> 9 #grid-lanes { 10 display: inline-grid-lanes; 11 grid-template-columns: minmax(auto, 0); 12 width: 200px; 13 } 14 </style> 15 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 16 <div id="grid-lanes"> 17 <img id="img" src="support/100x100-green.png"> 18 <div style="background-color: red; aspect-ratio: 1;"> 19 </div>