Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="stylesheet" href="/fonts/ahem.css">
<link rel="match" href="column-track-sizing-002-ref.html">
<style>
.masonry {
display: masonry;
grid-template-columns: minmax(15px, min-content) max-content auto;
background-color: gray;
width: 100px;
font: 10px/1 Ahem;
}
</style>
<body>
<p>Test that masonry tracks are correctly sized, and auto tracks are stretched.</p>
<div class="masonry">
<div style="grid-column: 1; background: green;">XXX XXX</div>
<div style="grid-column: 1 / 3; background: purple;">X XX X</div>
<div style="grid-column: 1; width: 100%; height: 1em; background: yellow;"></div>
<div style="grid-column: 2; width: 100%; height: 1em; background: orange;"></div>
<div style="grid-column: 3; width: 100%; height: 1em; background: blue;"></div>
</div>
</body>
</html>