tor-browser

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

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


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