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/column-auto-repeat-013.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="column-auto-repeat-013-ref.html">
<style>
.masonry {
  display: masonry;
  border: solid thick;
  margin: 10px;
  grid-template-columns: repeat(auto-fill, 50px 50px);
  grid-column-gap: 100px;
  width: 300px;
  background: pink;
}
.masonry > div {
  background: lime;
  width: 100%;
  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>