tor-browser

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

grid-abspos-staticpos-justify-self-rtl-002.html (3944B)


      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: Static position of abspos LTR children in a RTL grid container, with various "justify-self" values</title>
     10  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     11  <link rel="help" href="https://drafts.csswg.org/css-grid/#abspos-items">
     12  <link rel="match" href="grid-abspos-staticpos-justify-self-rtl-002-ref.html">
     13  <style>
     14    .container {
     15      display: grid;
     16      direction: rtl;
     17      padding: 2px 1px;
     18      border: 1px solid black;
     19      background: yellow;
     20      margin-bottom: 5px;
     21      margin-right: 5px;
     22      float: left; /* For testing in "rows" of containers */
     23      position: relative;
     24    }
     25    br { clear: both }
     26 
     27    .big > .container {
     28      width: 30px;
     29      height: 22px;
     30      grid: 3px 14px 3px / 2px 20px 2px;
     31    }
     32    .small > .container {
     33      grid: 3px 2px 3px / 0px 2px 0px;
     34      width: 2px;
     35      height: 4px;
     36      margin-right: 10px; /* To avoid overlap between overflowing kids */
     37    }
     38 
     39    .container > * {
     40      position: absolute;
     41      direction: ltr;
     42      grid-area: 2 / 2 / 3 / 3;
     43      background: teal;
     44      width: 6px;
     45      height: 8px;
     46    }
     47  </style>
     48 </head>
     49 <body>
     50  <div class="big">
     51    <!-- The various justify-self values, from
     52         https://www.w3.org/TR/css-align-3/#propdef-justify-self -->
     53    <!-- auto | normal | stretch -->
     54    <div class="container"><div style="justify-self: auto"></div></div>
     55    <div class="container"><div style="justify-self: normal"></div></div>
     56    <div class="container"><div style="justify-self: stretch"></div></div>
     57    <br>
     58    <!-- <baseline-position> -->
     59    <div class="container"><div style="justify-self: baseline"></div></div>
     60    <br>
     61    <!-- <self-position>, part 1 -->
     62    <div class="container"><div style="justify-self: center"></div></div>
     63    <div class="container"><div style="justify-self: start"></div></div>
     64    <div class="container"><div style="justify-self: end"></div></div>
     65    <div class="container"><div style="justify-self: self-start"></div></div>
     66    <div class="container"><div style="justify-self: self-end"></div></div>
     67    <br>
     68    <!-- <self-position>, part 2 -->
     69    <div class="container"><div style="justify-self: flex-start"></div></div>
     70    <div class="container"><div style="justify-self: flex-end"></div></div>
     71    <div class="container"><div style="justify-self: left"></div></div>
     72    <div class="container"><div style="justify-self: right"></div></div>
     73    <br>
     74  </div>
     75  <div class="small">
     76    <!-- The various justify-self values, from
     77         https://www.w3.org/TR/css-align-3/#propdef-justify-self -->
     78    <!-- auto | normal | stretch -->
     79    <div class="container"><div style="justify-self: auto"></div></div>
     80    <div class="container"><div style="justify-self: normal"></div></div>
     81    <div class="container"><div style="justify-self: stretch"></div></div>
     82    <br>
     83    <!-- <baseline-position> -->
     84    <div class="container"><div style="justify-self: baseline"></div></div>
     85    <br>
     86    <!-- <self-position>, part 1 -->
     87    <div class="container"><div style="justify-self: center"></div></div>
     88    <div class="container"><div style="justify-self: start"></div></div>
     89    <div class="container"><div style="justify-self: end"></div></div>
     90    <div class="container"><div style="justify-self: self-start"></div></div>
     91    <div class="container"><div style="justify-self: self-end"></div></div>
     92    <br>
     93    <!-- <self-position>, part 2 -->
     94    <div class="container"><div style="justify-self: flex-start"></div></div>
     95    <div class="container"><div style="justify-self: flex-end"></div></div>
     96    <div class="container"><div style="justify-self: left"></div></div>
     97    <div class="container"><div style="justify-self: right"></div></div>
     98    <br>
     99  </div>
    100 </body>
    101 </html>