tor-browser

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

grid-stretch-respects-min-size-001.html (1247B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: stretch alignment respects min size constraints of the grid container</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#algo-stretch">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-align">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="The test checks that during the last step of the track sizing algorithm (stretch auto tracks), the min-width/height constraints of the grid container are respected.">
      9 <style>
     10  #reference-overlapped-red {
     11    position: absolute;
     12    background-color: red;
     13    width: 100px;
     14    height: 100px;
     15    z-index: -1;
     16  }
     17 
     18  #constrained-wrapper {
     19    width: 50px;
     20    height: 50px;
     21  }
     22 
     23  #grid {
     24    display: grid;
     25    min-width: 100px;
     26    min-height: 100px;
     27  }
     28 
     29  #test-item-overlapping-green {
     30    background: green;
     31  }
     32 </style>
     33 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     34 
     35 <div id="reference-overlapped-red"></div>
     36 <div id="constrained-wrapper">
     37  <div id="grid">
     38    <div id="test-item-overlapping-green"></div>
     39  </div>
     40 </div>