row-item-minmax-img-001.html (844B)
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-lanes-direction: row; 12 grid-template-rows: minmax(auto, 0); 13 height: 200px; 14 } 15 </style> 16 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 17 <div id="grid-lanes"> 18 <img id="img" src="support/100x100-green.png"> 19 <div style="background-color: red; aspect-ratio: 1;"> 20 </div>