tor-browser

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

flexbox-single-column-vertical-rl-6-ref.html (2221B)


      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 a fixed block-size single-line column flex container and a fixed block-size flex item that has overflows</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    display: block;
     25    background: gray;
     26    /* border-width is 0 by default; some sub-testcases will increase it. */
     27    border: 0 solid lightgray;
     28    /* Block-size is deliberately made shorter than its flex items. */
     29    block-size: 40px;
     30  }
     31  .border-padding {
     32    border-block-width: 10px;
     33    padding-block: 5px;
     34  }
     35 
     36  article {
     37    inline-size: 30px;
     38    /* Block-size is deliberately made shorter than its <div> child. */
     39    block-size: 70px;
     40    background: cyan;
     41  }
     42  article > div {
     43    inline-size: 20px;
     44    block-size: 140px;
     45    background: magenta;
     46  }
     47  </style>
     48 
     49  <body>
     50    <!-- Basic one without any margin/border/padding. -->
     51    <div class="multicol">
     52      <div class="flexContainer">
     53        <article><div></div></article>
     54      </div>
     55    </div>
     56 
     57    <!-- Test a container with margin-block-start. -->
     58    <div class="multicol">
     59      <div class="flexContainer" style="margin-block-start: 25px">
     60        <article><div></div></article>
     61      </div>
     62    </div>
     63 
     64    <!-- Test a container not at the top of the column/page. -->
     65    <div class="multicol">
     66      <div style="block-size: 25px"></div>
     67      <div class="flexContainer">
     68        <article><div></div></article>
     69      </div>
     70    </div>
     71 
     72    <!-- Test a container with border and padding. -->
     73    <div class="multicol">
     74      <div class="flexContainer border-padding">
     75        <article><div></div></article>
     76      </div>
     77    </div>
     78  </body>
     79 </html>