tor-browser

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

row-min-max-content-container.html (1680B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <link rel="match" href="row-min-max-content-container-ref.html">
      5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
      6 <style>
      7 html,body {
      8  color:black; background-color:white; font:15px/1 monospace; padding:0; margin:0;
      9 }
     10 
     11 .grid-lanes {
     12    display: grid-lanes;
     13    background: gray;
     14    position: relative;
     15    flow-tolerance: 0;
     16    grid-lanes-direction: row;
     17    grid-template-rows: auto auto auto;
     18    padding: 10px;
     19 }
     20 
     21 .fourth-item {
     22  grid-row: span 2;
     23 }
     24 
     25 .invisible {
     26  visibility: hidden;
     27 }
     28 </style>
     29 <body>
     30  <p>Ensure that containers with min and max-content constraints are sized correctly when all items inside are sized as min/max-content.</p>
     31  <div class="grid-lanes" style="margin-bottom: 10px; width: min-content;">
     32    <div class="first-item invisible" style="width: min-content;">
     33      Number 1
     34    </div>
     35    <div class="second-item invisible" style="width: min-content;">
     36      Number 2
     37    </div>
     38    <div class="third-item invisible" style="width: min-content;">
     39      Number 3
     40    </div>
     41    <div class="fourth-item invisible" style="width: min-content;">
     42      Number 4
     43    </div>
     44  </div>
     45  <div class="grid-lanes" style="width: max-content;">
     46    <div class="first-item invisible" style="width: max-content;">
     47      Number 1
     48    </div>
     49    <div class="second-item invisible" style="width: max-content;">
     50      Number 2
     51    </div>
     52    <div class="third-item invisible" style="width: max-content;">
     53      Number 3
     54    </div>
     55    <div class="fourth-item invisible" style="width: max-content;">
     56      Number 4
     57    </div>
     58  </div>
     59 </body>
     60 </html>