summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-004.html
blob: a7a6336c24eaedea4b962d34ff46d14c8d281dd5 (plain)
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#algo-overview">
<meta name="assert" content="An element with an aspect-ratio and stretch alignment stretches to the definite row, and transfers its size.">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="display: inline-grid; grid-template-rows: 100px; background: green;">
  <img src="support/50x50-green.png" style="align-self: stretch; opacity: 0;">
</div>