tor-browser

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

row-auto-repeat-010.html (2072B)


      1 <!DOCTYPE html>
      2 <title>Auto repeat tracks and percentage max sizes</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <meta name="assert" content="This test checks that auto repeat tracks use percentage max size when size is indefinite to compute the number of tracks.">
      5 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      6 <style>
      7 .grid-lanes {
      8    position: relative;
      9    display: grid-lanes;
     10    grid-lanes-direction: row;
     11    grid-template-rows: repeat(auto-fill, 50px);
     12    max-width: 50%;
     13    max-height: 80%;
     14    background: pink;
     15 }
     16 .wrapper {
     17  width: 600px;
     18  height: 250px;
     19 }
     20 .item {
     21  background: lime;
     22  /* Place item on the last row. */
     23  grid-row: -2;
     24  width: 300px;
     25  height: 100%;
     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="300" data-expected-height="200">
     37    <div class="item" data-offset-x="0" data-offset-y="150" data-expected-width="300" data-expected-height="50"></div>
     38  </div>
     39 </div>
     40 
     41 <div class="wrapper">
     42  <div class="grid-lanes" style="width: 200px; height: 100px;" data-expected-width="200" data-expected-height="100">
     43    <div class="item" data-offset-x="0" data-offset-y="50" data-expected-width="300" data-expected-height="50"></div>
     44  </div>
     45 </div>
     46 
     47 <div class="wrapper">
     48  <div class="grid-lanes" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="200">
     49    <div class="item" data-offset-x="0" data-offset-y="150" data-expected-width="300" data-expected-height="50"></div>
     50  </div>
     51 </div>
     52 
     53 <div class="wrapper">
     54  <div class="grid-lanes" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="200">
     55    <div class="item" data-offset-x="0" data-offset-y="150" data-expected-width="300" data-expected-height="50"></div>
     56  </div>
     57 </div>
     58 
     59 </body>