tor-browser

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

flexbox-single-row-vertical-rl-3a.html (2610B)


      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 block-size:auto and box-decoration-break:clone 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-3-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, column-gap, and box-decoration-break:clone.">
     12 
     13  <style>
     14  html {
     15    writing-mode: vertical-rl;
     16  }
     17  .multicol {
     18    block-size: 80px;
     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: 0 solid white;
     32    border-block-width: 15px;
     33    box-decoration-break: clone;
     34  }
     35 
     36  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     37  header, nav, article, footer {
     38    flex-grow: 1;
     39  }
     40  header {
     41    background: cyan;
     42    block-size: 100px;
     43  }
     44  nav {
     45    background: magenta;
     46    block-size: 25px;
     47    align-self: flex-start;
     48  }
     49  article {
     50    background: yellow;
     51    block-size: 50px;
     52    align-self: center;
     53  }
     54  footer {
     55    background: black;
     56    block-size: 75px;
     57    align-self: flex-end;
     58  }
     59  </style>
     60 
     61  <body>
     62    <!-- Test a container with margin-block-start. -->
     63    <div class="multicol">
     64      <div class="flexContainer" style="margin-block-start: 25px">
     65        <header></header><nav></nav><article></article><footer></footer>
     66      </div>
     67    </div>
     68 
     69    <!-- Test a container not at the top of the column/page. -->
     70    <div class="multicol">
     71      <div style="block-size: 25px"></div>
     72      <div class="flexContainer">
     73        <header></header><nav></nav><article></article><footer></footer>
     74      </div>
     75    </div>
     76 
     77    <!-- Test a container with column-gap. -->
     78    <div class="multicol">
     79      <div class="flexContainer" style="column-gap: 4px">
     80        <header></header><nav></nav><article></article><footer></footer>
     81      </div>
     82    </div>
     83  </body>
     84 </html>