tor-browser

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

flexbox-single-row-vertical-rl-2.html (3285B)


      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: Fragmentation of fixed block-size single-line row flex container with fixed block-size flex items</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  <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
     10  <link rel="match" href="flexbox-single-row-vertical-rl-2-ref.html">
     11  <meta name="assert" content="This test verifies fragmentation of fixed block-size flex items in a block-size:auto single-line row flex container, with various combinations of margin/border/padding, alignments, and column-gap. The block-size of the flex container is made shorter than <header>.">
     12 
     13  <style>
     14  html {
     15    writing-mode: vertical-rl;
     16  }
     17  .multicol {
     18    block-size: 50px;
     19    inline-size: 320px;
     20    column-count: 3;
     21    column-fill: auto;
     22    column-gap: 10px;
     23    border: 5px solid orange;
     24    margin-block-end: 5px; /* Just to separate each sub-testcase visually. */
     25  }
     26  .flexContainer {
     27    display: flex;
     28    flex-wrap: nowrap;
     29    flex-direction: row;
     30    background: gray;
     31    /* border-width is 0 by default; some sub-testcases will increase it. */
     32    border: 0 solid lightgray;
     33    /* Block-size is deliberately made shorter than <header>. */
     34    block-size: 80px;
     35  }
     36  .border-padding {
     37    border-block-width: 10px;
     38    padding-block: 5px;
     39  }
     40 
     41  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     42  header, nav, article, footer {
     43    flex-grow: 1;
     44  }
     45  header {
     46    background: cyan;
     47    block-size: 100px;
     48  }
     49  nav {
     50    background: magenta;
     51    block-size: 25px;
     52    align-self: flex-start;
     53  }
     54  article {
     55    background: yellow;
     56    block-size: 50px;
     57    align-self: center;
     58  }
     59  footer {
     60    background: black;
     61    block-size: 75px;
     62    align-self: flex-end;
     63  }
     64  </style>
     65 
     66  <body>
     67    <!-- Basic one without any margin/border/padding. -->
     68    <div class="multicol">
     69      <div class="flexContainer">
     70        <header></header><nav></nav><article></article><footer></footer>
     71      </div>
     72    </div>
     73 
     74    <!-- Test a container with margin-block-start. -->
     75    <div class="multicol">
     76      <div class="flexContainer" style="margin-block-start: 25px">
     77        <header></header><nav></nav><article></article><footer></footer>
     78      </div>
     79    </div>
     80 
     81    <!-- Test a container not at the top of the column/page. -->
     82    <div class="multicol">
     83      <div style="block-size: 25px"></div>
     84      <div class="flexContainer">
     85        <header></header><nav></nav><article></article><footer></footer>
     86      </div>
     87    </div>
     88 
     89    <!-- Test a container with border and padding. -->
     90    <div class="multicol">
     91      <div class="flexContainer border-padding">
     92        <header></header><nav></nav><article></article><footer></footer>
     93      </div>
     94    </div>
     95 
     96    <!-- Test a container with border, padding, and column-gap. -->
     97    <div class="multicol">
     98      <div class="flexContainer border-padding" style="column-gap: 4px">
     99        <header></header><nav></nav><article></article><footer></footer>
    100      </div>
    101    </div>
    102  </body>
    103 </html>