tor-browser

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

grid-block-end-item-spans-multiple-rows.html (1065B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" href="mailto:sammy.gill@apple.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-grid">
      6 <meta name="assert" content="item that spans into last row should have block-end margin trimmed">
      7 </head>
      8 <style>
      9 grid {
     10    display: grid;
     11    border: 1px solid black;
     12    grid-template-columns: auto auto;
     13    margin-trim: block-end;
     14 }
     15 item {
     16    display: block;
     17    width: 50px;
     18    height: 50px;
     19    margin-bottom: 10px;
     20 }
     21 .row-two {
     22    grid-row: 2;
     23    background-color: green;
     24 }
     25 .span-two-rows {
     26    grid-row: span 2;
     27    background-color: blue;
     28    height: 90px;
     29 }
     30 </style>
     31 <script src="/resources/testharness.js"></script>
     32 <script src="/resources/testharnessreport.js"></script>
     33 <script src="/resources/check-layout-th.js"></script>
     34 <body onload="checkLayout('grid > item')">
     35    <div id="target">
     36    <grid>
     37        <item data-expected-margin-bottom="0" class="span-two-rows"></item>
     38        <item data-expected-margin-bottom="0" class="row-two"></item>
     39    </grid>
     40    </div>
     41 </body>
     42 </html>