tor-browser

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

row-grid-lanes-intrinsic-sizing-oof.html (1328B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Grid Lanes Test: Grid Lanes layout intrinsic size with only OOF children</title>
      6  <link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
      7  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing">
      8  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#abspos">
      9  <link rel="match" href="row-grid-lanes-intrinsic-sizing-oof-ref.html">
     10  <style>
     11    .container {
     12        border: 2px solid black;
     13        margin: 10px;
     14        height: 300px;
     15        position: relative;
     16    }
     17 
     18    .grid-lanes {
     19        display: grid-lanes;
     20        grid-lanes-direction: row;
     21        grid-template-rows: repeat(3, auto);
     22        border: 2px solid blue;
     23        padding: 5px;
     24    }
     25 
     26    .oof-item {
     27        position: absolute;
     28        background: red;
     29        color: white;
     30        padding: 5px;
     31        border: 1px solid darkred;
     32    }
     33 
     34    .oof-1 {
     35        top: 50px;
     36        left: 50px;
     37        width: 60px;
     38        height: 40px;
     39    }
     40 
     41    .oof-2 {
     42        top: 150px;
     43        left: 100px;
     44        width: 70px;
     45        height: 50px;
     46    }
     47  </style>
     48 </head>
     49 <body>
     50 <div class="container">
     51  <div class="grid-lanes">
     52    <div class="oof-item oof-1"></div>
     53    <div class="oof-item oof-2"></div>
     54  </div>
     55 </div>
     56 </body>
     57 </html>