grid-aspect-ratio-037.html (633B)
1 <!DOCTYPE html> 2 <title>CSS aspect-ratio: A stretch alignment in one axis, and a definite length in the other causes the aspect-ratio to be ignored.</title> 3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio"> 4 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-item-sizing"> 5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="display: grid; grid-template: 100px / 100px;"> 8 <div style="aspect-ratio: 1/2; height: 100%; justify-self: stretch; background: green;"></div> 9 </div>