tor-browser

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

flexbox-single-column-3a.html (2556B)


      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 column 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-column-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 column flex container, with various combinations of margin/border/padding, alignments, row-gap, and box-decoration-break:clone.">
     12 
     13  <style>
     14  .multicol {
     15    block-size: 80px;
     16    inline-size: 190px;
     17    column-width: 40px;
     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    display: flex;
     25    flex-wrap: nowrap;
     26    flex-direction: column;
     27    background: gray;
     28    border: 0 solid white;
     29    border-block-width: 15px;
     30    box-decoration-break: clone;
     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    align-self: flex-start;
     45  }
     46  article {
     47    background: yellow;
     48    block-size: 25px;
     49    align-self: center;
     50  }
     51  footer {
     52    background: black;
     53    block-size: 50px;
     54    align-self: flex-end;
     55  }
     56  </style>
     57 
     58  <body>
     59    <!-- Test a container with margin-block-start. -->
     60    <div class="multicol">
     61      <div class="flexContainer" style="margin-block-start: 25px">
     62        <header></header><nav></nav><article></article><footer></footer>
     63      </div>
     64    </div>
     65 
     66    <!-- Test a container not at the top of the column/page. -->
     67    <div class="multicol">
     68      <div style="block-size: 25px"></div>
     69      <div class="flexContainer">
     70        <header></header><nav></nav><article></article><footer></footer>
     71      </div>
     72    </div>
     73 
     74    <!-- Test a container with row-gap. -->
     75    <div class="multicol">
     76      <div class="flexContainer" style="row-gap: 5px">
     77        <header></header><nav></nav><article></article><footer></footer>
     78      </div>
     79    </div>
     80  </body>
     81 </html>