tor-browser

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

grid-trim-ignores-collapsed-tracks.html (938B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: grid-trim-ignores-collapsed-tracks</title>
      5 <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-grid">
      7 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="should ignore collapsed margins when determining if an edge should be trimmed">
      9 <style>
     10 grid {
     11    display: inline-grid;
     12    grid-template-rows: repeat(auto-fit, 250px);
     13    grid-template-columns: repeat(auto-fit, 250px);
     14    margin-trim: block-start inline-start;
     15 }
     16 item {
     17    display: block;
     18    background-color: green;
     19    grid-column: 2;
     20    grid-row: 2;
     21    margin-inline-start: 30px;
     22    margin-block-start: 50px;
     23    width: 100px;
     24    height: 100px;
     25 }
     26 </style>
     27 </head>
     28 <body>
     29 <p>Test passes if there is a filled green square.</p>
     30 <grid>
     31 <item></item>
     32 </grid>
     33 </body>
     34 </html>