tor-browser

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

grid-content-distribution-022.html (1680B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Content Distribution 'stretch' on 3x3 grid</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-align">
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#content-distribution">
      7 <link rel="help" href="https://drafts.csswg.org/css-align-3/#valdef-align-content-stretch">
      8 <link rel="match" href="../../reference/ref-filled-green-300px-square.html">
      9 <meta name="assert" content="Content Distribution properties with 'stretch' value render correcly.">
     10 <style>
     11 .block {
     12  position: absolute;
     13  z-index: -1;
     14  background: green;
     15  width: 300px;
     16  height: 300px;
     17 }
     18 .block > div {
     19  position: absolute;
     20  background: red;
     21  width: 100px;
     22  height: 100px;
     23 }
     24 .grid {
     25  z-index: 1;
     26  display: grid;
     27  width: 300px;
     28  height: 300px;
     29  grid-template-columns: auto auto auto;
     30  grid-template-rows: auto auto auto;
     31  align-content: stretch;
     32  justify-content: stretch;
     33 }
     34 .grid > div { background: green; }
     35 </style>
     36 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     37 <div class="block">
     38    <div style="top: 0px; left: 100px;"></div>
     39    <div style="top: 0px; left: 200px;"></div>
     40    <div style="top: 100px; left: 0px;"></div>
     41    <div style="top: 200px; left: 0px;"></div>
     42 </div>
     43 <div class="grid">
     44    <div class="item" style="grid-row: 1; grid-column: 2;"></div>
     45    <div class="item" style="grid-row: 1; grid-column: 3;"></div>
     46    <div class="item" style="grid-row: 2; grid-column: 1;"></div>
     47    <div class="item" style="grid-row: 3; grid-column: 1;"></div>
     48 </div>