tor-browser

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

grid-floats-no-intrude-001.html (926B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: floats do not intrude into a grid</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/#grid-containers" title="3.1 Establishing Grid Containers">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <style>
      8  #reference-overlapped-red {
      9    position: absolute;
     10    background-color: red;
     11    width: 100px;
     12    height: 100px;
     13    z-index: -1;
     14  }
     15 
     16  .test-overlapping-green {
     17    background-color: green;
     18    width: 50px;
     19    height: 100px;
     20  }
     21 
     22  .float {
     23    float: left;
     24  }
     25 
     26  .grid {
     27    display: grid;
     28  }
     29 </style>
     30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     31 
     32 <div id="reference-overlapped-red"></div>
     33 
     34 <div class="float test-overlapping-green"></div>
     35 <div class="grid test-overlapping-green"></div>