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-last-baseline-003.html (1655B)


      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 children in a RTL static-pos 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-last-baseline-003-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    }
     24    br { clear: both }
     25 
     26    .big > .container {
     27      width: 30px;
     28      height: 22px;
     29      grid: 3px 14px 3px / 2px 20px 2px;
     30    }
     31    .small > .container {
     32      grid: 3px 2px 3px / 0px 2px 0px;
     33      width: 2px;
     34      height: 4px;
     35      margin-right: 10px; /* To avoid overlap between overflowing kids */
     36    }
     37 
     38    .container > * {
     39      position: absolute;
     40      grid-area: 2 / 2 / 3 / 3;
     41      background: teal;
     42      width: 6px;
     43      height: 8px;
     44    }
     45  </style>
     46 </head>
     47 <body>
     48  <!-- The last baseline value, from
     49       https://www.w3.org/TR/css-align-3/#propdef-justify-self -->
     50  <div class="big">
     51    <div class="container"><div style="justify-self: last baseline"></div></div>
     52  </div>
     53  <div class="small">
     54    <div class="container"><div style="justify-self: last baseline"></div></div>
     55  </div>
     56 </body>
     57 </html>