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