tor-browser

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

grid-block-start.html (1333B)


      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-box-4/#margin-trim-grid">
      6 <meta name="assert" content="Grid items with trimmed block start margins should be reflected in computed style">
      7 <style>
      8 grid {
      9    display: grid;
     10    width: min-content;
     11    border: 1px solid black;
     12    grid-template-columns: auto auto;
     13    margin-trim: block-start;
     14 }
     15 item {
     16    display: block;
     17    width: 50px;
     18    height: 50px;
     19    background-color: green;
     20 }
     21 .locked-location {
     22    grid-row: 1;
     23    grid-column: 2;
     24 }
     25 item:nth-child(1) {
     26    margin-block-start: 50%;
     27 }
     28 item:nth-child(2) {
     29    margin-block-start: -30px;
     30 }
     31 item:nth-child(3) {
     32    margin-block-start: 10px;
     33 }
     34 item:nth-child(4) {
     35    margin-block-start: 10px;
     36 }
     37 </style>
     38 <script src="/resources/testharness.js"></script>
     39 <script src="/resources/testharnessreport.js"></script>
     40 <script src="/resources/check-layout-th.js"></script>
     41 </head>
     42 <body onload="checkLayout('grid > item')">
     43    <div id="target">
     44    <grid>
     45        <item class="locked-location" data-expected-margin-top="0"></item>
     46        <item data-expected-margin-top="0"></item>
     47        <item data-expected-margin-top="10"></item>
     48        <item data-expected-margin-top="10"></item>
     49    </grid>
     50    </div>
     51 </body>
     52 </html>