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/track-sizing/auto-repeat/intrinsic-auto-repeat/row-auto-repeat-auto-011.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<title>Auto repeat tracks with multiple tracks and gutters.</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="row-auto-repeat-auto-011-ref.html">
<style>
.masonry {
  display: masonry;
  border: solid thick;
  margin: 10px;
  masonry-direction: row;
  grid-template-rows: repeat(auto-fill, auto auto);
  grid-row-gap: 100px;
  height: 300px;
  width: min-content;
  background: pink;
}
.masonry > div {
  background: lime;
  width: 50px;
  height: 50px;
}
</style>
<p>The test passes if it has the same visual effect as reference.</p>
<div class="masonry">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
</div>