Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/tentative/items/row-item-minmax-img-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Image within a masonry with a size that depends on the containing block should stretch, but not size the grid tracks</title>
<link rel="author" href="mailto:almaher@microsoft.com">
<link rel="match" href="../../../../reference/ref-filled-green-100px-square.xht">
<style>
#masonry {
display: inline-grid-lanes;
masonry-direction: row;
grid-template-rows: minmax(auto, 0);
height: 200px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="masonry">
<img id="img" src="support/100x100-green.png">
<div style="background-color: red; aspect-ratio: 1;">
</div>