tor-browser

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

row-auto-repeat-009.html (1567B)


      1 <!DOCTYPE html>
      2 <title>Auto repeat tracks and percentage min sizes with percentage track sizes</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <meta name="assert"
      5  content="This test checks that auto repeat tracks can use percentage track
      6  size when only a min size is available to compute the number of tracks.">
      7 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      8 <style>
      9 .grid-lanes {
     10    position: relative;
     11    display: inline-grid-lanes;
     12    grid-lanes-direction: row;
     13    grid-template-rows: repeat(auto-fill, 20%);
     14    min-height: 50%;
     15    width: 100px;
     16    float: left;
     17    background: pink;
     18 }
     19 .wrapper {
     20  height: 1000px;
     21 }
     22 .item {
     23  background: lime;
     24  height: 100%;
     25  width: 100px;
     26 }
     27 </style>
     28 <script src="/resources/testharness.js"></script>
     29 <script src="/resources/testharnessreport.js"></script>
     30 <script src="/resources/check-layout-th.js"></script>
     31 <body onload="checkLayout('.grid-lanes');">
     32 
     33  <div id="log"></div>
     34 
     35  <div class="wrapper">
     36    <div class="grid-lanes" data-expected-width="100" data-expected-height="500">
     37      <div class="item" data-expected-width="100" data-expected-height="100">Cell 1</div>
     38      <div class="item" data-expected-width="100" data-expected-height="100">Cell 2</div>
     39      <div class="item" data-expected-width="100" data-expected-height="100">Cell 3</div>
     40      <div class="item" data-expected-width="100" data-expected-height="100">Cell 4</div>
     41      <div class="item" data-expected-width="100" data-expected-height="100">Cell 5</div>
     42    </div>
     43  </div>
     44 
     45 </body>