tor-browser

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

flexbox-single-row-vertical-rl-1-ref.html (3445B)


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