tor-browser

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

row-auto-repeat-023.html (1040B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>Auto-fit repeat tracks with fixed size and auto item placement</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      5 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9 .grid-lanes {
     10    display: grid-lanes;
     11    flow-tolerance: 0;
     12    grid-lanes-direction: row;
     13    grid-template-rows: repeat(auto-fit, 100px) repeat(5, 100px);
     14    width: 200px;
     15    height: 1000px;
     16 }
     17 
     18 .grid-lanes > div {
     19    height: 100%;
     20    width: 100px;
     21 }
     22 </style>
     23 <div class="grid-lanes">
     24  <div></div>
     25  <div></div>
     26  <div></div>
     27  <div></div>
     28  <div></div>
     29 </div>
     30 <script>
     31  test(function() {
     32    const container = document.querySelector('.grid-lanes');
     33    const computedStyle = window.getComputedStyle(container);
     34    assert_equals(computedStyle.getPropertyValue('grid-template-rows'),
     35      "100px 100px 100px 100px 100px 100px 100px 100px 100px 100px");
     36  });
     37 </script>
     38 </html>