tor-browser

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

flexbox-writing-mode-015.html (2579B)


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