tor-browser

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

row-auto-repeat-011.html (1975B)


      1 <!DOCTYPE html>
      2 <title>Auto repeat tracks with min and 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 don't overflow the grid-lanes container size when max size is definite, even if min size is bigger than that.">
      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-rows: repeat(auto-fill, 50px);
     11    grid-lanes-direction: row;
     12    max-width: 100px;
     13    min-width: 250px;
     14    max-height: 50px;
     15    min-height: 125px;
     16    float: left;
     17    background: pink;
     18 }
     19 .item {
     20  background: lime;
     21  /* Place item on the last row. */
     22  grid-row: -2;
     23  width: 250px;
     24  height: 100%;
     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="grid-lanes" data-expected-width="250" data-expected-height="125">
     35  <div class="item" data-offset-x="0" data-offset-y="50" data-expected-width="250" data-expected-height="50"></div>
     36 </div>
     37 
     38 <div class="grid-lanes" style="width: 200px; height: 100px;" data-expected-width="250" data-expected-height="125">
     39  <div class="item" data-offset-x="0" data-offset-y="50" data-expected-width="250" data-expected-height="50"></div>
     40 </div>
     41 
     42 <div class="grid-lanes" style="width: min-content; height: min-content;" data-expected-width="250" data-expected-height="125">
     43  <div class="item" data-offset-x="0" data-offset-y="50" data-expected-width="250" data-expected-height="50"></div>
     44 </div>
     45 
     46 <div class="grid-lanes" style="width: max-content; height: max-content;" data-expected-width="250" data-expected-height="125">
     47  <div class="item" data-offset-x="0" data-offset-y="50" data-expected-width="250" data-expected-height="50"></div>
     48 </div>
     49 
     50 </body>