tor-browser

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

flexbox-single-column-vertical-lr-1d.html (3269B)


      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-reverse 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-lr-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-reverse flex container, with various combinations of margin/border/padding, alignments, and row-gap.">
     12 
     13  <style>
     14  html {
     15    writing-mode: vertical-lr;
     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-reverse;
     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  footer {
     42    background: cyan;
     43    block-size: 50px;
     44    flex-grow: 2;
     45  }
     46  article, nav, header {
     47    inline-size: 30px;
     48  }
     49  article {
     50    background: magenta;
     51    block-size: 25px;
     52    flex-grow: 1;
     53    align-self: flex-start;
     54  }
     55  nav {
     56    background: yellow;
     57    block-size: 25px;
     58    flex-grow: 1;
     59    align-self: center;
     60  }
     61  header {
     62    background: black;
     63    block-size: 50px;
     64    flex-grow: 2;
     65    align-self: flex-end;
     66  }
     67  </style>
     68 
     69  <body>
     70    <!-- Basic one without any margin/border/padding. -->
     71    <div class="multicol">
     72      <div class="flexContainer">
     73        <header></header><nav></nav><article></article><footer></footer>
     74      </div>
     75    </div>
     76 
     77    <!-- Test a container with margin-block-start. -->
     78    <div class="multicol">
     79      <div class="flexContainer" style="margin-block-start: 25px">
     80        <header></header><nav></nav><article></article><footer></footer>
     81      </div>
     82    </div>
     83 
     84    <!-- Test a container not at the top of the column/page. -->
     85    <div class="multicol">
     86      <div style="block-size: 25px"></div>
     87      <div class="flexContainer">
     88        <header></header><nav></nav><article></article><footer></footer>
     89      </div>
     90    </div>
     91 
     92    <!-- Test a container with border and padding. -->
     93    <div class="multicol">
     94      <div class="flexContainer border-padding">
     95        <header></header><nav></nav><article></article><footer></footer>
     96      </div>
     97    </div>
     98 
     99    <!-- Test a container with border, padding, and row-gap. -->
    100    <div class="multicol">
    101      <div class="flexContainer border-padding" style="block-size: 165px; row-gap: 5px">
    102        <header></header><nav></nav><article></article><footer></footer>
    103      </div>
    104    </div>
    105  </body>
    106 </html>