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/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-007.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
-->
<html>
<meta charset="utf-8">
<title>CSS Grid Test: Masonry layout column sizing - intrinsic</title>
<link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com">
<link rel="match" href="masonry-intrinsic-sizing-cols-007-ref.html">
<style>
@import "support/masonry-intrinsic-sizing-visual.css";
grid {
display: inline-grid;
gap: 1px 2px;
grid-template-rows: masonry;
border: 1px solid;
padding: 0 1px 0 2px;
vertical-align: top;
}
.mix grid {
grid-template-columns: 1ch auto;
}
.mix2 grid {
grid-template-columns: 1ch auto 1ch;
}
</style>
<body>
<section class="mix">
<grid title="Auto Last Track">
<item style="width:5ch; grid-column: span 2;">1</item>
</grid>
</section>
<section class="mix2">
<grid title="Auto Middle Track">
<item style="width:5ch; grid-column: span 3;">1</item>
</grid>
</section>