tor-browser

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

grid-gutters-013.html (1377B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Gutters adjacent to collapsed tracks also collapse</title>
      4 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#gutters">
      5 <link rel="help" href="https://www.w3.org/TR/css-align-3/#gap-shorthand">
      6 <link rel="help" href="https://www.w3.org/TR/css-align-3/#gap-legacy">
      7 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#repeat-notation">
      8 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      9 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
     10 <meta name="assert" content="This test checks that gutters adjacent to collapsed tracks don't reduce the space available for aligning adjacent grid items." />
     11 <style>
     12    #grid {
     13        display: grid;
     14        margin-top: -50px;
     15        margin-left: -50px;
     16        width: 500px;
     17        height: 500px;
     18        grid-gap: 100px;
     19        grid-template-rows: repeat(auto-fit, 200px);
     20        grid-template-columns: repeat(auto-fit, 200px);
     21        align-items: center;
     22        justify-items: center;
     23        background: linear-gradient(red, red) no-repeat 50px 50px / 100px 100px;
     24    }
     25 
     26    #grid > div {
     27        background-color: green;
     28        width: 50%;
     29        height: 50%;
     30    }
     31 </style>
     32 
     33 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     34 <div id="grid">
     35    <div></div>
     36 </div>