tor-browser

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

contain-inline-size-grid-stretches-auto-rows.html (858B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-stretch">
      6 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      7 <meta name="assert" content="grid with inline-size containment, and min-height will still distribute extra space to auto rows">
      8 <style>
      9 grid {
     10    display: grid;
     11    min-height: 100px;
     12    grid-template-rows: auto;
     13    contain: inline-size;
     14 }
     15 .absolute {
     16    position: absolute;
     17 }
     18 .align-end {
     19    align-self: end;
     20 }
     21 .item {
     22    width: 100px;
     23    height: 50px;
     24    background-color: green;
     25 }
     26 </style>
     27 </head>
     28 <body>
     29    <p>Test passes if there is a filled green square.</p>
     30    <grid>
     31        <div class="absolute item"></div>
     32        <div class="item align-end"></div>
     33    </grid>
     34 </body>
     35 </html>