tor-browser

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

flexbox-multi-row-vertical-lr-1-ref.html (3156B)


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