tor-browser

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

grid-abspos-staticpos-align-self-rtl-last-baseline-002-ref.html (1530B)


      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 Reference</title>
     10  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     11  <style>
     12    .container {
     13      display: block;
     14      padding: 1px 2px;
     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    }
     21    br { clear: both }
     22 
     23    .big > .container {
     24      height: 30px;
     25      width: 22px;
     26    }
     27    .small > .container {
     28      height: 2px;
     29      width: 4px;
     30    }
     31 
     32    .container > * {
     33      background: teal;
     34      height: 6px;
     35      width: 8px;
     36    }
     37    .big   > .container > * { margin-left: 11px; }
     38    .small > .container > * { margin-left: -7px; }
     39 
     40    .big   .alignStart  { margin-top:  2px; }
     41    .big   .alignCenter { margin-top:  9px; }
     42    .big   .alignEnd    { margin-top: 16px; }
     43    .small .alignStart  { margin-top:  0px; }
     44    .small .alignCenter { margin-top: -2px; }
     45    .small .alignEnd    { margin-top: -4px; }
     46  </style>
     47 </head>
     48 <body>
     49  <!-- The last baseline value, from
     50       https://www.w3.org/TR/css-align-3/#propdef-align-self -->
     51  <div class="big">
     52    <div class="container"><div class="alignEnd"><!--last baseline--></div></div>
     53  </div>
     54  <div class="small">
     55    <div class="container"><div class="alignEnd"><!--last baseline--></div></div>
     56  </div>
     57 </body>
     58 </html>