Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.grid {
display: grid;
background: gray;
height: 200px;
gap: 20px;
padding: 20px;
}
.first-track {
background: lightskyblue;
grid-row-start: 1;
width: fit-content;
}
.second-track {
background: lightcoral;
grid-row-start: 2;
height: 200px;
width: fit-content;
}
.third-track {
background: lightgreen;
grid-row-start: 3;
width: fit-content;
}
</style>
<body>
<p>Test that masonry items with explicit placement are correctly positioned within the grid axis.</p>
<div class="grid">
<div class="first-track">This is some text</div>
<div class="second-track">Some larger words in this sentence</div>
<div class="third-track">The cat cannot be separated from milk</div>
</div>
</body>
</html>