tor-browser

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

grid-gutters-011.html (909B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Support for calc mixing fixed and percentage values for gap</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="match" href="../reference/grid-different-gutters-ref.html">
      7 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      8 <style>
      9    #grid {
     10        display: grid;
     11        width: 200px;
     12        height: 220px;
     13        gap: calc(15% + 7px) calc(10px + 5%);
     14        grid-template-columns: 90px 90px;
     15        grid-template-rows: 90px 90px;
     16        background-color: green;
     17    }
     18 
     19    #grid > div {
     20        background-color: silver;
     21    }
     22 </style>
     23 
     24 <p>The test passes if it has the same visual effect as reference.</p>
     25 <div id="grid">
     26    <div></div>
     27    <div></div>
     28    <div></div>
     29    <div></div>
     30 </div>