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.html (1578B)


      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>CSS Test: 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  <link rel="help" href="https://drafts.csswg.org/css-flexbox/#abspos-items">
     12  <link rel="match" href="grid-abspos-staticpos-align-self-safe-001-ref.html">
     13  <style>
     14    .container {
     15      display: grid;
     16      padding: 2px 1px;
     17      border: 1px solid black;
     18      background: yellow;
     19      margin-bottom: 5px;
     20      margin-right: 5px;
     21      float: left; /* For testing in "rows" of containers */
     22      position: relative;
     23      width: 30px;
     24      height: 25px;
     25      grid: 3px 14px 3px / 2px 20px 2px;
     26    }
     27    br { clear: both }
     28    .container > * {
     29      position: absolute;
     30      grid-area: 2 / 2 / 3 / 3;
     31      background: teal;
     32      width: 21px;
     33      height: 21px;
     34      justify-self: safe end;
     35      align-self: safe center;
     36    }
     37    .vertRL {
     38      writing-mode: vertical-rl;
     39    }
     40    .relPos {
     41      position: relative;
     42    }
     43    .relPos > * {
     44      height: 35px;
     45      width: 33px;
     46    }
     47  </style>
     48 </head>
     49 <body>
     50  <div class="container vertRL"><div></div></div>
     51  <div class="container"><div></div></div>
     52  <div class="container relPos vertRL"><div></div></div>
     53  <div class="container relPos"><div></div></div>
     54 </body>
     55 </html>