tor-browser

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

flexbox-writing-mode-009.html (2197B)


      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 Test: Verify that explicit sizes are honored on flex items whose writing-mode may differ from the flex container's writing-mode</title>
      9  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     10  <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
     11  <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode">
     12  <link rel="match" href="flexbox-writing-mode-009-ref.html">
     13  <meta charset="utf-8">
     14  <style>
     15    .flexContainer {
     16      display: flex;
     17      width: 40px;
     18      height: 30px;
     19      border: 1px solid gray;
     20      margin-bottom: 5px;
     21      writing-mode: vertical-rl;
     22      flex-flow: row wrap;
     23    }
     24    .flexContainer > * {
     25      width: 20px;
     26      height: 15px;
     27    }
     28    .item1 {
     29      /* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
     30      background: cyan;
     31    }
     32    .item2 {
     33      background: magenta;
     34    }
     35    .item3 {
     36      background: yellow;
     37    }
     38    .item4 {
     39      background: black;
     40    }
     41 
     42    /* Classes applied to flex container, to customize its children
     43     * (which should not affect their sizing):
     44     */
     45    .kids_horizontal_tb > * {
     46      writing-mode: horizontal-tb;
     47    }
     48    .kids_vertical_lr > * {
     49      writing-mode: vertical-lr;
     50    }
     51    .kids_vertical_rl > * {
     52      writing-mode: vertical-rl;
     53    }
     54 
     55  </style>
     56 </head>
     57 <body>
     58  <div class="flexContainer">
     59    <div class="item1"></div><div class="item2"></div>
     60    <div class="item3"></div><div class="item4"></div>
     61  </div>
     62  <div class="flexContainer kids_horizontal_tb">
     63    <div class="item1"></div><div class="item2"></div>
     64    <div class="item3"></div><div class="item4"></div>
     65  </div>
     66  <div class="flexContainer kids_vertical_lr">
     67    <div class="item1"></div><div class="item2"></div>
     68    <div class="item3"></div><div class="item4"></div>
     69  </div>
     70  <div class="flexContainer kids_vertical_rl">
     71    <div class="item1"></div><div class="item2"></div>
     72    <div class="item3"></div><div class="item4"></div>
     73  </div>
     74 </body>
     75 </html>