Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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;
grid-template-columns: minmax(auto, 0);
width: 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>