tor-browser

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

flexbox-baseline-multi-item-horiz-001b.html (1533B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <!-- Testcase for how we compute the baseline of a horizontal flex container
      7     with several "order"-reordered flex items, none of which have
      8    "align-self:baseline".  The spec says this about this case:
      9       ...if the flex container has at least one flex item, and its
     10       first flex item has a baseline parallel to the flex
     11       container's main axis, the flex container's main-axis
     12       baseline is that baseline.
     13 -->
     14 <html>
     15 <head>
     16  <title>CSS Test: Testing the baseline of a horizontal flex container whose flex items are not baseline-aligned</title>
     17  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     18  <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-baselines">
     19  <link rel="match" href="flexbox-baseline-multi-item-horiz-001-ref.html">
     20  <meta charset="utf-8">
     21  <style>
     22    .flexContainer {
     23      display: inline-flex;
     24      background: lightblue;
     25    }
     26    .smallFont {
     27      font-size: 10px;
     28      line-height: 10px;
     29    }
     30    .bigFont {
     31      font-size: 20px;
     32      line-height: 20px;
     33    }
     34    .smallOrder { order: -1 }
     35    .bigOrder { order: 30 }
     36  </style>
     37 </head>
     38 <body>
     39  a
     40  <div class="flexContainer">
     41    <div class="bigFont">c</div
     42    ><div class="smallFont smallOrder">b</div>
     43  </div>
     44  <div class="flexContainer">
     45    <div class="smallFont bigOrder">e</div
     46    ><div class="bigFont">d</div>
     47  </div>
     48 </body>
     49 </html>