tor-browser

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

grid-minimum-size-grid-items-001.html (1139B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Minimum size of grid items</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <meta name="flags" content="ahem">
      8 <meta name="assert" content="Checks that minimum size for grid items is the content size.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11  #reference-overlapped-red {
     12    position: absolute;
     13    background-color: red;
     14    width: 100px;
     15    height: 100px;
     16    z-index: -1;
     17  }
     18 
     19  #constrained-grid {
     20    display: grid;
     21    width: 10px;
     22    height: 10px;
     23  }
     24 
     25  #test-grid-item-overlapping-green {
     26    color: green;
     27    background-color: green;
     28    font: 50px/1 Ahem;
     29  }
     30 </style>
     31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     32 
     33 <div id="reference-overlapped-red"></div>
     34 <div id="constrained-grid">
     35  <div id="test-grid-item-overlapping-green">IT E</div>
     36 </div>