Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
 - This WPT test may be referenced by the following Test IDs:
            
- /css/css-grid/masonry/tentative/track-sizing/auto-repeat/column-auto-repeat-010.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<title>Auto repeat tracks and percentage min sizes with percentage track sizes</title>
<meta name="assert"
  content="This test checks that auto repeat tracks can use percentage track
  size when only a min size is available to compute the number of tracks.">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.masonry {
    position: relative;
    display: inline-masonry;
    grid-template-columns: repeat(auto-fill, 25%);
    min-width: 50%;
    height: 200px;
    float: left;
    background: pink;
}
.wrapper {
  width: 600px;
}
.item {
  background: lime;
  width: 100%;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.masonry');">
  <div id="log"></div>
  <div class="wrapper">
    <div class="masonry" data-expected-width="300" data-expected-height="200">
      <div class="item" data-expected-width="75">Cell 1</div>
      <div class="item" data-expected-width="75">Cell 2</div>
      <div class="item" data-expected-width="75">Cell 3</div>
      <div class="item" data-expected-width="75">Cell 4</div>
      <div class="item" data-expected-width="75">Cell 5</div>
    </div>
  </div>
</body>