tor-browser

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

overflow-hidden-does-not-prohibit-subgrid.html (1040B)


      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-overflow-3/#overflow-control">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#track-sizing">
      7 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="overflow on a grid item does not cause it to establish an independent formatting context, and as a result does not prohibit subgrid">
      9 <style>
     10 .grid {
     11  display: inline-grid;
     12  grid-template: auto auto / auto auto;
     13  background-color: green;
     14 }
     15 .subgrid {
     16    grid-row: span 2;
     17    grid-column: 2;
     18    display: grid;
     19    grid-template-rows: subgrid;
     20    overflow: hidden;
     21 }
     22 .item {
     23    width: 50px;
     24    height: 50px;
     25 }
     26 </style>
     27 </head>
     28 <body>
     29 <p>Test passes if there is a filled green square.</p>
     30 <div class="grid">
     31  <div class="item" style="grid-row: 1;"></div>
     32  <div class="subgrid">
     33    <div class="item" style="grid-row: 2;"></div>
     34  </div>
     35 </div>
     36 </body>
     37 </html>