tor-browser

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

flexbox-baseline-single-item-001-ref.html (1328B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <!-- Reference case, using inline-block instead of inline-flex. -->
      7 <html>
      8 <head>
      9  <title>CSS Reftest Reference</title>
     10  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     11  <meta charset="utf-8">
     12  <style>
     13    body {
     14      font: 14px serif;
     15    }
     16    .flexContainer {
     17      display: inline-block;
     18      height: 16px;
     19      width: 16px;
     20      background: pink;
     21      border: 0px dotted black;
     22      /* (Elements that want a border will set their border-width.) */
     23    }
     24    .abs {
     25      position: absolute;
     26      top: 0;
     27      font-size: 8px;
     28    }
     29  </style>
     30 </head>
     31 <body>
     32  A
     33  <div class="flexContainer">a</div>
     34  <div class="flexContainer" style="padding-bottom: 20px">a</div>
     35  <div class="flexContainer" style="padding: 10px">a</div>
     36  <div class="flexContainer" style="border-width: 3px">a</div>
     37  <div class="flexContainer" style="border-bottom-width: 4px">a</div>
     38  <div class="flexContainer" style="padding: 4px">
     39    <!-- (An abspos child shouldn't prevent us from getting our baseline from
     40         the first flex item, which happens to be the second child.) -->
     41    <div class="abs">abs</div>
     42    <div style="font: 26px serif">a</div>
     43 </body>
     44 </html>