tor-browser

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

flexbox-single-column-vertical-rl-2-ref.html (2774B)


      1 <!DOCTYPE html>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 <html>
      5  <meta charset="utf-8">
      6  <title>CSS Flexbox Test Reference: Fragmentation of single-line column flex container</title>
      7  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      8  <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      9 
     10  <style>
     11  html {
     12    writing-mode: vertical-rl;
     13  }
     14  .multicol {
     15    block-size: 50px;
     16    inline-size: 190px;
     17    column-width: 40px;
     18    column-fill: auto;
     19    column-gap: 10px;
     20    border: 5px solid orange;
     21    margin-block-end: 5px; /* Just to separate each sub-testcase visually. */
     22  }
     23  .flexContainer {
     24    background: gray;
     25    /* border-width is 0 by default; some sub-testcases will increase it. */
     26    border: 0 solid lightgray;
     27    block-size: 85px;
     28  }
     29  .border-padding {
     30    border-block-width: 10px;
     31    padding-block: 5px;
     32  }
     33  .gap {
     34    block-size: 5px;
     35  }
     36 
     37  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     38  header {
     39    background: cyan;
     40    block-size: 50px;
     41  }
     42  nav, article, footer {
     43    inline-size: 30px;
     44  }
     45  nav {
     46    background: magenta;
     47    block-size: 25px;
     48  }
     49  article {
     50    background: yellow;
     51    block-size: 25px;
     52    position: relative;
     53    inset-inline-start: 5px;
     54  }
     55  footer {
     56    background: black;
     57    block-size: 50px;
     58    position: relative;
     59    inset-inline-start: 10px;
     60  }
     61  </style>
     62 
     63  <body>
     64    <!-- Basic one without any margin/border/padding. -->
     65    <div class="multicol">
     66      <div class="flexContainer">
     67        <header></header><nav></nav><article></article><footer></footer>
     68      </div>
     69    </div>
     70 
     71    <!-- Test a container with margin-block-start. -->
     72    <div class="multicol">
     73      <div class="flexContainer" style="margin-block-start: 25px">
     74        <header></header><nav></nav><article></article><footer></footer>
     75      </div>
     76    </div>
     77 
     78    <!-- Test a container not at the top of the column/page. -->
     79    <div class="multicol">
     80      <div style="block-size: 25px"></div>
     81      <div class="flexContainer">
     82        <header></header><nav></nav><article></article><footer></footer>
     83      </div>
     84    </div>
     85 
     86    <!-- Test a container with border and padding. -->
     87    <div class="multicol">
     88      <div class="flexContainer border-padding">
     89        <header></header><nav></nav><article></article><footer></footer>
     90      </div>
     91    </div>
     92 
     93    <!-- Test a container with border, padding, and row-gap. -->
     94    <div class="multicol">
     95      <div class="flexContainer border-padding">
     96        <header></header><div class="gap"></div><nav></nav><div class="gap"></div><article></article><div class="gap"></div><footer></footer>
     97      </div>
     98    </div>
     99  </body>
    100 </html>