tor-browser

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

row-explicit-placement-001-ref.html (921B)


      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    width: fit-content;
     24 }
     25 
     26 .third-track {
     27    background: lightgreen;
     28    grid-row-start: 3;
     29    width: fit-content;
     30 }
     31 </style>
     32 <body>
     33  <p>Test that grid-lanes items with explicit placement are correctly positioned within the grid axis.</p>
     34  <div class="grid">
     35    <div class="first-track">This is some text</div>
     36    <div class="second-track">Some larger words in this sentence</div>
     37    <div class="third-track">The cat cannot be separated from milk</div>
     38  </div>
     39 </body>
     40 </html>