tor-browser

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

flexbox-multi-row-vertical-rl-2-ref.html (3330B)


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