tor-browser

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

flexbox-writing-mode-012-ref.html (2732B)


      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>CSS Reftest Reference</title>
      9  <meta charset="utf-8">
     10  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     11  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     12  <style>
     13  .container {
     14    display: block;
     15    float: left;
     16    border: 2px solid purple;
     17    padding: 2px;
     18    margin-bottom: 2em;
     19    height: 500px;
     20    width: 150px;
     21  }
     22 
     23  span {
     24    display: block;
     25    background: lightgrey;
     26    border: 2px solid black;
     27    margin: 11px 13px 17px 7px;
     28    inline-size: 6px;
     29 
     30    /* This really floats to top ('logical left'), since all the containers
     31       have a vertical writing mode. */
     32    float: right;
     33  }
     34 
     35  .small { font: 12px Ahem; }
     36  .big   { font: 20px Ahem; }
     37 
     38  .hl  { writing-mode: horizontal-tb;  direction: ltr; }
     39  .hr  { writing-mode: horizontal-tb;  direction: rtl; }
     40  .vl  { writing-mode: vertical-lr;    direction: ltr; }
     41  .vr  { writing-mode: vertical-rl;    direction: ltr; }
     42  .vl_rtl { writing-mode: vertical-lr; direction: rtl; }
     43  .vr_rtl { writing-mode: vertical-rl; direction: rtl; }
     44 
     45 
     46  .container > .vl,     .container > .vr,
     47  .container > .vl_rtl, .container > .vr_rtl {
     48    /* In the testcase, these items are stretched horizontally
     49       via the default "align-self:stretch" behavior, and because
     50       they have a width of "auto".
     51       (The rest of the items have a non-auto width from "inline-size"
     52       and their horizontal writing-mode, so those ones do not stretch.) */
     53    width: 126px;
     54  }
     55  </style>
     56 </head>
     57 <body>
     58 
     59 <div class="container vl_rtl">
     60  <span class="hl small">p b c</span>
     61  <span class="hl big">p e</span>
     62  <span class="hr small">p b c</span>
     63  <span class="hr big">p e</span>
     64  <span class="vl small">p b c</span>
     65  <span class="vl big">p e</span>
     66 </div>
     67 <div class="container vl_rtl">
     68  <span class="vr small">p b c</span>
     69  <span class="vr big">p e</span>
     70  <span class="vl_rtl small">p b c</span>
     71  <span class="vl_rtl big">p e</span>
     72  <span class="vr_rtl small">p b c</span>
     73  <span class="vr_rtl big">p e</span>
     74 </div>
     75 <div class="container vr_rtl">
     76  <span class="hl small">p b c</span>
     77  <span class="hl big">p e</span>
     78  <span class="hr small">p b c</span>
     79  <span class="hr big">p e</span>
     80  <span class="vl small">p b c</span>
     81  <span class="vl big">p e</span>
     82 </div>
     83 <div class="container vr_rtl">
     84  <span class="vr small">p b c</span>
     85  <span class="vr big">p e</span>
     86  <span class="vl_rtl small">p b c</span>
     87  <span class="vl_rtl big">p e</span>
     88  <span class="vr_rtl small">p b c</span>
     89  <span class="vr_rtl big">p e</span>
     90 </div>
     91 
     92 </body>
     93 </html>