tor-browser

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

column-auto-repeat-011.html (2056B)


      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-template-columns: repeat(auto-fill, 100px);
     11    max-width: 50%;
     12    max-height: 80%;
     13    background: pink;
     14 }
     15 .wrapper {
     16  width: 600px;
     17  height: 250px;
     18 }
     19 .item {
     20  background: lime;
     21  /* Place item on the last column. */
     22  grid-column: -2;
     23  width: 100%;
     24  height: 200px;
     25 }
     26 </style>
     27 <script src="/resources/testharness.js"></script>
     28 <script src="/resources/testharnessreport.js"></script>
     29 <script src="/resources/check-layout-th.js"></script>
     30 <body onload="checkLayout('.grid-lanes');">
     31 
     32 <div id="log"></div>
     33 
     34 <div class="wrapper">
     35  <div class="grid-lanes" data-expected-width="300" data-expected-height="200">
     36    <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div>
     37  </div>
     38 </div>
     39 
     40 <div class="wrapper">
     41  <div class="grid-lanes" style="width: 200px; height: 100px;" data-expected-width="200" data-expected-height="100">
     42    <div class="item" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div>
     43  </div>
     44 </div>
     45 
     46 <div class="wrapper">
     47  <div class="grid-lanes" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="200">
     48    <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div>
     49  </div>
     50 </div>
     51 
     52 <div class="wrapper">
     53  <div class="grid-lanes" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="200">
     54    <div class="item" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div>
     55  </div>
     56 </div>
     57 
     58 </body>