tor-browser

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

flexbox-unbreakable-child-1d.html (1818B)


      1 <!DOCTYPE html>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 <!-- Testcase for how we fragment a flex container with a single unbreakable
      5     child, with the flex container having "flex-direction: column-reverse".
      6 -->
      7 <html>
      8  <head>
      9    <style>
     10    .multicol {
     11      height: 10px;
     12      width: 100px;
     13      column-width: 30px;
     14      column-fill: auto;
     15      border: 2px solid orange;
     16      margin-bottom: 15px; /* (just for spacing between testcases) */
     17    }
     18    .flexContainer {
     19      display: flex;
     20      flex-direction: column-reverse;
     21      justify-content: flex-end;
     22      background: teal;
     23      border: 1px dashed black;
     24    }
     25    .item {
     26      width: 100%;
     27      height: 20px;
     28      flex: none;
     29    }
     30    </style>
     31  </head>
     32  <body>
     33    <!-- auto-height container: -->
     34    <div class="multicol">
     35      <div class="flexContainer">
     36        <img src="" class="item">
     37      </div>
     38    </div>
     39 
     40    <!-- fixed-height container, smaller than available height: -->
     41    <div class="multicol">
     42      <div class="flexContainer" style="height: 8px">
     43        <img src="" class="item">
     44      </div>
     45    </div>
     46 
     47    <!-- fixed-height container, between available height and child height: -->
     48    <div class="multicol">
     49      <div class="flexContainer" style="height: 15px">
     50        <img src="" class="item">
     51      </div>
     52    </div>
     53 
     54    <!-- fixed-height container, same as child height: -->
     55    <div class="multicol">
     56      <div class="flexContainer" style="height: 20px">
     57        <img src="" class="item">
     58      </div>
     59    </div>
     60 
     61    <!-- fixed-height container, larger than child height: -->
     62    <div class="multicol">
     63      <div class="flexContainer" style="height: 24px">
     64        <img src="" class="item">
     65      </div>
     66    </div>
     67  </body>
     68 </html>