tor-browser

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

column-track-sizing-005-ref.html (2400B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <style>
      5 .grid {
      6    display: grid;
      7    grid-template-columns: 90px 80px 100px;
      8    width: 290px;
      9    height: 425px;
     10    gap: 10px;
     11    background: lightgoldenrodyellow;
     12 }
     13 </style>
     14 <body>
     15  <p>Test that grid-lanes tracks are correctly sized with mix of explicit and auto item placement.</p>
     16  <div class="grid">
     17    <div style="width: 50px; height: 50px; background: orange;"></div>
     18    <div style="width: 30px; height: 30px; background: yellow;"></div>
     19    <div style="width: 25px; height: 25px; background: green;"></div>
     20 
     21    <div style="width: 60px; height: 60px; background: pink;"></div>
     22    <div style="width: 80px; height: 80px; background: purple; transform: translateY(-20px);"></div>
     23    <div style="width: 100px; height: 100px; background: blue; transform: translateY(-25px);"></div>
     24 
     25    <div style="width: 90px; height: 90px; background: teal; transform: translateY(-40px);"></div>
     26    <div style="width: 40px; height: 40px; background: lime; transform: translateY(-40px);"></div>
     27    <div style="width: 15px; height: 15px; background: coral; transform: translateY(-25px);"></div>
     28 
     29    <div style="width: 90px; height: 25px; background: green; transform: translateY(-40px);"></div>
     30    <div style="width: 80px; height: 50px; background: orange; transform: translateY(-90px);"></div>
     31    <div style="width: 10px; height: 10px; background: fuchsia; grid-column: 3; transform: translateY(-100px);"></div>
     32 
     33    <div style="width: 90px; height: 60px; background: pink; grid-column: 1; transform: translateY(-65px);"></div>
     34    <div style="width: 80px; height: 80px; background: purple; transform: translateY(-90px);"></div>
     35    <div style="width: 100px; height: 30px; background: yellow; transform: translateY(-140px);"></div>
     36 
     37    <div style="width: 90px; height: 90px; background: teal; grid-column: 1; transform: translateY(-85px);"></div>
     38    <div style="width: 80px; height: 40px; background: lime; transform: translateY(-90px);"></div>
     39    <div style="width: 100px; height: 100px; background: blue; transform: translateY(-190px);"></div>
     40 
     41    <div style="width: 100px; height: 15px; background: coral; transform: translateY(-190px); grid-column: 3;"></div>
     42    <div style="width: 100px; height: 10px; background: fuchsia; transform: translateY(-190px); grid-column: 3;"></div>
     43  </div>
     44 </body>
     45 </html>