tor-browser

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

grid-abspos-staticpos-align-self-safe-001-ref.html (1413B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7 <head>
      8  <meta charset="utf-8">
      9  <title>Reference: Testing safe overflow-position for align-self and justify-self in absolutely positioned boxes in grid containers in both horizontal and vertical writing modes</title>
     10  <link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
     11  <style>
     12    .container {
     13      display: grid;
     14      padding: 2px 1px;
     15      border: 1px solid black;
     16      background: yellow;
     17      margin-bottom: 5px;
     18      margin-right: 5px;
     19      float: left; /* For testing in "rows" of containers */
     20      position: relative;
     21      width: 30px;
     22      height: 25px;
     23      grid: 3px 14px 3px / 2px 20px 2px;
     24    }
     25    br { clear: both }
     26    .container > * {
     27      position: absolute;
     28      grid-area: 2 / 2 / 3 / 3;
     29      background: teal;
     30      width: 21px;
     31      height: 21px;
     32      justify-self: start;
     33      align-self: start;
     34    }
     35    .vertRL {
     36      writing-mode: vertical-rl;
     37    }
     38    .relPos {
     39      position: relative;
     40    }
     41    .relPos > * {
     42      height: 35px;
     43      width: 33px;
     44    }
     45  </style>
     46 </head>
     47 <body>
     48  <div class="container vertRL"><div></div></div>
     49  <div class="container"><div></div></div>
     50  <div class="container relPos vertRL"><div></div></div>
     51  <div class="container relPos"><div></div></div>
     52 </body>
     53 </html>