tor-browser

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

flexbox-single-column-2-ref.html (2730B)


      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  .multicol {
     12    block-size: 50px;
     13    inline-size: 190px;
     14    column-width: 40px;
     15    column-fill: auto;
     16    column-gap: 10px;
     17    border: 5px solid orange;
     18    margin-block-end: 5px; /* Just to separate each sub-testcase visually. */
     19  }
     20  .flexContainer {
     21    background: gray;
     22    /* border-width is 0 by default; some sub-testcases will increase it. */
     23    border: 0 solid lightgray;
     24    block-size: 85px;
     25  }
     26  .border-padding {
     27    border-block-width: 10px;
     28    padding-block: 5px;
     29  }
     30  .gap {
     31    block-size: 5px;
     32  }
     33 
     34  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     35  header {
     36    background: cyan;
     37    block-size: 50px;
     38  }
     39  nav, article, footer {
     40    inline-size: 30px;
     41  }
     42  nav {
     43    background: magenta;
     44    block-size: 25px;
     45  }
     46  article {
     47    background: yellow;
     48    block-size: 25px;
     49    position: relative;
     50    inset-inline-start: 5px;
     51  }
     52  footer {
     53    background: black;
     54    block-size: 50px;
     55    position: relative;
     56    inset-inline-start: 10px;
     57  }
     58  </style>
     59 
     60  <body>
     61    <!-- Basic one without any margin/border/padding. -->
     62    <div class="multicol">
     63      <div class="flexContainer">
     64        <header></header><nav></nav><article></article><footer></footer>
     65      </div>
     66    </div>
     67 
     68    <!-- Test a container with margin-block-start. -->
     69    <div class="multicol">
     70      <div class="flexContainer" style="margin-block-start: 25px">
     71        <header></header><nav></nav><article></article><footer></footer>
     72      </div>
     73    </div>
     74 
     75    <!-- Test a container not at the top of the column/page. -->
     76    <div class="multicol">
     77      <div style="block-size: 25px"></div>
     78      <div class="flexContainer">
     79        <header></header><nav></nav><article></article><footer></footer>
     80      </div>
     81    </div>
     82 
     83    <!-- Test a container with border and padding. -->
     84    <div class="multicol">
     85      <div class="flexContainer border-padding">
     86        <header></header><nav></nav><article></article><footer></footer>
     87      </div>
     88    </div>
     89 
     90    <!-- Test a container with border, padding, and row-gap. -->
     91    <div class="multicol">
     92      <div class="flexContainer border-padding">
     93        <header></header><div class="gap"></div><nav></nav><div class="gap"></div><article></article><div class="gap"></div><footer></footer>
     94      </div>
     95    </div>
     96  </body>
     97 </html>