tor-browser

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

grid-gutters-012.html (1007B)


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