tor-browser

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

flexbox-overflow-vert-001.html (1547B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <!-- This testcase checks that we correctly handle the "overflow" property on
      7     a vertical flex container with overflowing contents. -->
      8 <html>
      9 <head>
     10  <title>CSS Test: Testing 'overflow' property on a vertical flex container</title>
     11  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     12  <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-containers">
     13  <link rel="match" href="flexbox-overflow-vert-001-ref.html">
     14  <style>
     15    .flexContainer {
     16      background: purple;
     17      display: flex;
     18      flex-direction: column;
     19      width: 70px;
     20      height: 70px;
     21      margin-bottom: 5px;
     22    }
     23    .bigItem {
     24      background: blue;
     25      width: 200px;
     26      flex: 3;
     27    }
     28    .smallItem {
     29      background: teal;
     30      margin-right: 10px;
     31      flex: 1;
     32    }
     33    .scroll { overflow: scroll }
     34    .auto   { overflow: auto   }
     35    .hidden { overflow: hidden }
     36  </style>
     37 </head>
     38 <body>
     39  <div class="flexContainer"><!-- (overflow un-set) -->
     40    <div class="bigItem"></div>
     41    <div class="smallItem"></div>
     42  </div>
     43  <div class="flexContainer hidden">
     44    <div class="bigItem"></div>
     45    <div class="smallItem"></div>
     46  </div>
     47  <div class="flexContainer scroll">
     48    <div class="bigItem"></div>
     49    <div class="smallItem"></div>
     50  </div>
     51  <div class="flexContainer auto">
     52    <div class="bigItem"></div>
     53    <div class="smallItem"></div>
     54  </div>
     55 </body>
     56 </html>