tor-browser

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

flexbox-single-column-vertical-rl-1c.html (3157B)


      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 column flex container with flexible length 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-vertical-rl-1-ref.html">
     11  <meta name="assert" content="This test verifies fragmentation of flexible length flex items in a fixed block-size single-line column flex container, with various combinations of margin/border/padding, alignments, and row-gap.">
     12 
     13  <style>
     14  html {
     15    writing-mode: vertical-rl;
     16  }
     17  .multicol {
     18    block-size: 50px;
     19    inline-size: 190px;
     20    column-width: 40px;
     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: column;
     30    background: gray;
     31    /* border-width is 0 by default; some sub-testcases will increase it. */
     32    border: 0 solid lightgray;
     33    block-size: 150px;
     34  }
     35  .border-padding {
     36    border-block-width: 10px;
     37    padding-block: 5px;
     38  }
     39 
     40  /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
     41  header {
     42    background: cyan;
     43    flex-grow: 2;
     44  }
     45  nav, article, footer {
     46    inline-size: 30px;
     47  }
     48  nav {
     49    background: magenta;
     50    flex-grow: 1;
     51    align-self: flex-start;
     52  }
     53  article {
     54    background: yellow;
     55    flex-grow: 1;
     56    align-self: center;
     57  }
     58  footer {
     59    background: black;
     60    flex-grow: 2;
     61    align-self: flex-end;
     62  }
     63  </style>
     64 
     65  <body>
     66    <!-- Basic one without any margin/border/padding. -->
     67    <div class="multicol">
     68      <div class="flexContainer">
     69        <header></header><nav></nav><article></article><footer></footer>
     70      </div>
     71    </div>
     72 
     73    <!-- Test a container with margin-block-start. -->
     74    <div class="multicol">
     75      <div class="flexContainer" style="margin-block-start: 25px">
     76        <header></header><nav></nav><article></article><footer></footer>
     77      </div>
     78    </div>
     79 
     80    <!-- Test a container not at the top of the column/page. -->
     81    <div class="multicol">
     82      <div style="block-size: 25px"></div>
     83      <div class="flexContainer">
     84        <header></header><nav></nav><article></article><footer></footer>
     85      </div>
     86    </div>
     87 
     88    <!-- Test a container with border and padding. -->
     89    <div class="multicol">
     90      <div class="flexContainer border-padding">
     91        <header></header><nav></nav><article></article><footer></footer>
     92      </div>
     93    </div>
     94 
     95    <!-- Test a container with border, padding, and row-gap. -->
     96    <div class="multicol">
     97      <div class="flexContainer border-padding" style="block-size: 165px; row-gap: 5px">
     98        <header></header><nav></nav><article></article><footer></footer>
     99      </div>
    100    </div>
    101  </body>
    102 </html>