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-028.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html>
<title>Auto repeat tracks with auto track sizes and % sized children with auto sized container</title>
<!-- No content is produced because there is nothing to size the rows
or items against in the block axis. -->
<link rel="match" href="../../../../../../reference/blank.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.masonry {
    display: masonry;
    background: gray;
    item-tolerance: 0;
    masonry-direction: row;
    grid-template-rows: repeat(auto-fill, auto);
    width: auto;
    height: auto;
}
.masonry > div {
    height: 100%;
    width: 100px;
}
</style>
<div class="masonry">
  <div style="background: lightskyblue;"></div>
  <div style="background: lightcoral;"></div>
  <div style="background: lightgreen;"></div>
</div>
</html>