tor-browser

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

flexbox-single-column-vertical-rl-1-ref.html (2752B)


      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  }
     28  .border-padding {
     29    border-block-width: 10px;
     30    padding-block: 5px;
     31  }
     32  .gap {
     33    block-size: 5px;
     34  }
     35 
     36  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     37  header {
     38    background: cyan;
     39    block-size: 50px;
     40  }
     41  nav, article, footer {
     42    inline-size: 30px;
     43  }
     44  nav {
     45    background: magenta;
     46    block-size: 25px;
     47  }
     48  article {
     49    background: yellow;
     50    block-size: 25px;
     51    position: relative;
     52    inset-inline-start: 5px;
     53  }
     54  footer {
     55    background: black;
     56    block-size: 50px;
     57    position: relative;
     58    inset-inline-start: 10px;
     59  }
     60  </style>
     61 
     62  <body>
     63    <!-- Basic one without any margin/border/padding. -->
     64    <div class="multicol">
     65      <div class="flexContainer">
     66        <header></header><nav></nav><article></article><footer></footer>
     67      </div>
     68    </div>
     69 
     70    <!-- Test a container with margin-block-start. -->
     71    <div class="multicol">
     72      <div class="flexContainer" style="margin-block-start: 25px">
     73        <header></header><nav></nav><article></article><footer></footer>
     74      </div>
     75    </div>
     76 
     77    <!-- Test a container not at the top of the column/page. -->
     78    <div class="multicol">
     79      <div style="block-size: 25px"></div>
     80      <div class="flexContainer">
     81        <header></header><nav></nav><article></article><footer></footer>
     82      </div>
     83    </div>
     84 
     85    <!-- Test a container with border and padding. -->
     86    <div class="multicol">
     87      <div class="flexContainer border-padding">
     88        <header></header><nav></nav><article></article><footer></footer>
     89      </div>
     90    </div>
     91 
     92    <!-- Test a container with border, padding, and row-gap. -->
     93    <div class="multicol">
     94      <div class="flexContainer border-padding">
     95        <header></header><div class="gap"></div><nav></nav><div class="gap"></div><article></article><div class="gap"></div><footer></footer>
     96      </div>
     97    </div>
     98  </body>
     99 </html>