tor-browser

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

row-explicit-placement-003-ref.html (940B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      5 <style>
      6 .grid {
      7    display: grid;
      8    background: gray;
      9    height: 200px;
     10    gap: 20px;
     11    padding: 20px;
     12 }
     13 
     14 .first-track {
     15    background: lightskyblue;
     16    grid-row-start: 1;
     17    width: fit-content;
     18 }
     19 
     20 .second-track {
     21    background: lightcoral;
     22    grid-row-start: 2;
     23    height: 200px;
     24    width: fit-content;
     25 }
     26 
     27 .third-track {
     28    background: lightgreen;
     29    grid-row-start: 3;
     30    width: fit-content;
     31 }
     32 </style>
     33 <body>
     34  <p>Test that grid-lanes items with explicit placement are correctly positioned within the grid axis.</p>
     35  <div class="grid">
     36    <div class="first-track">This is some text</div>
     37    <div class="second-track">Some larger words in this sentence</div>
     38    <div class="third-track">The cat cannot be separated from milk</div>
     39  </div>
     40 </body>
     41 </html>