tor-browser

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

flexbox-align-self-baseline-horiz-001a.xhtml (2321B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <!-- Testcase for behavior of the 'baseline' value for align-items (and
      7     align-self, implicitly). This test baseline-aligns various types of
      8     content, and the flexbox's vertical size depends on the aggregate
      9     post-alignment height of its children.
     10 -->
     11 <html xmlns="http://www.w3.org/1999/xhtml">
     12  <head>
     13    <title>CSS Test: Baseline alignment of block flex items with 'baseline' value for 'align-items' / 'align-self'</title>
     14    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
     15    <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#baseline-participation"/>
     16    <link rel="match" href="flexbox-align-self-baseline-horiz-001-ref.xhtml"/>
     17    <style>
     18      .flexbox {
     19        display: flex;
     20        border: 1px dashed blue;
     21        font: 14px sans-serif;
     22      }
     23      .base {
     24        align-items: baseline;
     25      }
     26      .lastbase {
     27        align-items: last baseline;
     28      }
     29 
     30      .big {
     31        height: 100px;
     32        font: 24px sans-serif;
     33        margin-top: 20px;
     34      }
     35      .super {
     36        vertical-align: super;
     37        font-size: 12px;
     38      }
     39      .sub {
     40        vertical-align: sub;
     41        font-size: 12px;
     42      }
     43 
     44      .lime   { background: lime;   }
     45      .yellow { background: yellow; }
     46      .orange { background: orange; }
     47      .pink   { background: pink;   }
     48      .aqua   { background: aqua;   }
     49      .tan    { background: tan;    }
     50   </style>
     51  </head>
     52  <body>
     53    <div class="flexbox base">
     54      <div class="lime">blk_1line</div>
     55      <div class="yellow">blk<br/>2lines</div>
     56      <div class="orange"><span class="super">super</span></div>
     57      <div class="pink"><span class="sub">sub</span></div>
     58      <div class="aqua big">big<br/>text<br/>3lines</div>
     59      <i class="tan">ital<br/>ic</i>
     60    </div>
     61    <div class="flexbox lastbase">
     62      <div class="lime">blk_1line</div>
     63      <div class="yellow">blk<br/>2lines</div>
     64      <div class="orange"><span class="super">super</span></div>
     65      <div class="pink"><span class="sub">sub</span></div>
     66      <div class="aqua big">big<br/>text<br/>3lines</div>
     67      <i class="tan">ital<br/>ic</i>
     68    </div>
     69  </body>
     70 </html>