tor-browser

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

flexbox-align-self-baseline-horiz-004-ref.xhtml (1816B)


      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 <!-- Reference case for behavior of the 'baseline' value for align-items and
      7     align-self, in a multi-line flex container.
      8 
      9     This reference case just consists of three single-line flex containers,
     10     to match the testcase's one flex container with three flex lines.
     11 -->
     12 <html xmlns="http://www.w3.org/1999/xhtml">
     13  <head>
     14    <title>CSS Reftest Reference</title>
     15    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
     16    <style>
     17      .flexbox {
     18        display: flex;
     19        align-items: baseline;
     20        width: 90px;
     21      }
     22 
     23      .flexbox > * {
     24        width: 28px;
     25        background: yellow;
     26        border: 1px solid black;
     27      }
     28 
     29      .big    { font: 24px sans-serif; }
     30      .medium { font: 14px sans-serif; }
     31      .small  { font: 8px sans-serif;  }
     32 
     33   </style>
     34  </head>
     35  <body>
     36    <div class="flexbox">
     37      <!-- First flex line: Just 3 different sizes of text -->
     38      <div class="big">a</div>
     39      <div class="small">b</div>
     40      <div class="medium">c</div>
     41    </div>
     42    <div class="flexbox">
     43      <!-- Second flex line: different margin/padding amounts on each item,
     44           and one non-baseline-aligned item.-->
     45      <div class="medium" style="padding-top: 10px">d</div>
     46      <div class="medium" style="margin-bottom: 8px">e</div>
     47      <div class="medium" style="align-self: stretch">f</div>
     48    </div>
     49    <div class="flexbox">
     50      <!-- Third flex line: other margin/padding amounts on each item -->
     51      <div class="small" style="margin-top: 20px">g</div>
     52      <div class="big">h</div>
     53      <div class="medium" style="padding-bottom: 6px">i</div>
     54    </div>
     55  </body>
     56 </html>