tor-browser

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

flexbox-single-column-6.html (2530B)


      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 a fixed block-size single-line column flex container and a fixed block-size flex item that has overflows</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-6-ref.html">
     11  <meta name="assert" content="This test verifies fragmentation of a fixed block-size flex item that has overflows in a fixed block-size single-line column flex container.">
     12 
     13  <style>
     14  .multicol {
     15    block-size: 50px;
     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-width is 0 by default; some sub-testcases will increase it. */
     29    border: 0 solid lightgray;
     30    /* Block-size is deliberately made shorter than its flex items. */
     31    block-size: 40px;
     32  }
     33  .border-padding {
     34    border-block-width: 10px;
     35    padding-block: 5px;
     36  }
     37 
     38  article {
     39    inline-size: 30px;
     40    /* Block-size is deliberately made shorter than its <div> child. */
     41    block-size: 70px;
     42    background: cyan;
     43  }
     44  article > div {
     45    inline-size: 20px;
     46    block-size: 140px;
     47    background: magenta;
     48  }
     49  </style>
     50 
     51  <body>
     52    <!-- Basic one without any margin/border/padding. -->
     53    <div class="multicol">
     54      <div class="flexContainer">
     55        <article><div></div></article>
     56      </div>
     57    </div>
     58 
     59    <!-- Test a container with margin-block-start. -->
     60    <div class="multicol">
     61      <div class="flexContainer" style="margin-block-start: 25px">
     62        <article><div></div></article>
     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        <article><div></div></article>
     71      </div>
     72    </div>
     73 
     74    <!-- Test a container with border and padding. -->
     75    <div class="multicol">
     76      <div class="flexContainer border-padding">
     77        <article><div></div></article>
     78      </div>
     79    </div>
     80  </body>
     81 </html>