tor-browser

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

flexbox-align-self-baseline-horiz-001b.xhtml (2506B)


      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. This test also uses
     10     "flex-wrap: wrap-reverse" to make the cross-axis bottom-to-top instead
     11     of top-to-bottom.
     12 -->
     13 <html xmlns="http://www.w3.org/1999/xhtml">
     14  <head>
     15    <title>CSS Test: Baseline alignment of block flex items with 'baseline' value for 'align-items' / 'align-self' in a wrap-reverse flex container</title>
     16    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
     17    <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#baseline-participation"/>
     18    <link rel="match" href="flexbox-align-self-baseline-horiz-001-ref.xhtml"/>
     19    <style>
     20      .flexbox {
     21        display: flex;
     22        flex-wrap: wrap-reverse;
     23        border: 1px dashed blue;
     24        font: 14px sans-serif;
     25      }
     26      .base {
     27        align-items: baseline;
     28      }
     29      .lastbase {
     30        align-items: last baseline;
     31      }
     32 
     33      .big {
     34        height: 100px;
     35        font: 24px sans-serif;
     36        margin-top: 20px;
     37      }
     38      .super {
     39        vertical-align: super;
     40        font-size: 12px;
     41      }
     42      .sub {
     43        vertical-align: sub;
     44        font-size: 12px;
     45      }
     46 
     47      .lime   { background: lime;   }
     48      .yellow { background: yellow; }
     49      .orange { background: orange; }
     50      .pink   { background: pink;   }
     51      .aqua   { background: aqua;   }
     52      .tan    { background: tan;    }
     53   </style>
     54  </head>
     55  <body>
     56    <div class="flexbox base">
     57      <div class="lime">blk_1line</div>
     58      <div class="yellow">blk<br/>2lines</div>
     59      <div class="orange"><span class="super">super</span></div>
     60      <div class="pink"><span class="sub">sub</span></div>
     61      <div class="aqua big">big<br/>text<br/>3lines</div>
     62      <i class="tan">ital<br/>ic</i>
     63    </div>
     64    <div class="flexbox lastbase">
     65      <div class="lime">blk_1line</div>
     66      <div class="yellow">blk<br/>2lines</div>
     67      <div class="orange"><span class="super">super</span></div>
     68      <div class="pink"><span class="sub">sub</span></div>
     69      <div class="aqua big">big<br/>text<br/>3lines</div>
     70      <i class="tan">ital<br/>ic</i>
     71    </div>
     72  </body>
     73 </html>