tor-browser

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

flexbox-single-column-1-ref.html (2708B)


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