tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

flex-item-grid-container-auto-repeat-002.html (1002B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1936276">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
      7 <meta name="assert" content="This test verifies that the grid container's content size suggestion (min-content size) is 50px, which is contributed by only one repeat column.">
      8 
      9 <style>
     10 .flex {
     11  display: flex;
     12  width: 100px;
     13  height: 100px;
     14 }
     15 .item-flex-none {
     16  width: 50px;
     17  flex: none;
     18  background: green;
     19 }
     20 .item-grid-container {
     21  display: grid;
     22  width: 200px;
     23  grid-template-columns: repeat(auto-fill, 50px);
     24  background: green;
     25 }
     26 </style>
     27 
     28 <p>Test passes if there is a filled green square.</p>
     29 <div class="flex">
     30  <div class="item-flex-none"></div>
     31  <div class="item-grid-container"></div>
     32 </div>