tor-browser

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

flexbox-writing-mode-010.html (2530B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7 <head>
      8  <title>
      9    CSS Test: Testing a mix of flex items with various values for
     10    'writing-mode' / 'direction' in a horizontal row-oriented flex container.
     11  </title>
     12  <meta charset="utf-8">
     13  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     14  <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property">
     15  <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode">
     16  <link rel="match" href="flexbox-writing-mode-010-ref.html">
     17  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     18  <style>
     19  .container {
     20    display: flex;
     21    flex-direction: row;
     22    border: 2px solid purple;
     23    padding: 2px;
     24    margin-bottom: 2em;
     25    height: 150px;
     26    width: 500px;
     27  }
     28 
     29  span {
     30    display: block;
     31    background: lightgrey;
     32    border: 2px solid black;
     33    margin: 11px 13px 17px 7px;
     34    inline-size: 6px;
     35  }
     36 
     37  .small { font: 12px Ahem; }
     38  .big   { font: 20px Ahem; }
     39 
     40  .hl  { writing-mode: horizontal-tb;  direction: ltr; }
     41  .hr  { writing-mode: horizontal-tb;  direction: rtl; }
     42  .vl  { writing-mode: vertical-lr;    direction: ltr; }
     43  .vr  { writing-mode: vertical-rl;    direction: ltr; }
     44  .vl_rtl { writing-mode: vertical-lr; direction: rtl; }
     45  .vr_rtl { writing-mode: vertical-rl; direction: rtl; }
     46  </style>
     47 </head>
     48 <body>
     49 
     50 <div class="container hl">
     51  <span class="hl small">p b c</span>
     52  <span class="hl big">p e</span>
     53  <span class="hr small">p b c</span>
     54  <span class="hr big">p e</span>
     55  <span class="vl small">p b c</span>
     56  <span class="vl big">p e</span>
     57 </div>
     58 <div class="container hl">
     59  <span class="vr small">p b c</span>
     60  <span class="vr big">p e</span>
     61  <span class="vl_rtl small">p b c</span>
     62  <span class="vl_rtl big">p e</span>
     63  <span class="vr_rtl small">p b c</span>
     64  <span class="vr_rtl big">p e</span>
     65 </div>
     66 <div class="container hr">
     67  <span class="hl small">p b c</span>
     68  <span class="hl big">p e</span>
     69  <span class="hr small">p b c</span>
     70  <span class="hr big">p e</span>
     71  <span class="vl small">p b c</span>
     72  <span class="vl big">p e</span>
     73 </div>
     74 <div class="container hr">
     75  <span class="vr small">p b c</span>
     76  <span class="vr big">p e</span>
     77  <span class="vl_rtl small">p b c</span>
     78  <span class="vl_rtl big">p e</span>
     79  <span class="vr_rtl small">p b c</span>
     80  <span class="vr_rtl big">p e</span>
     81 </div>
     82 
     83 </body>
     84 </html>