tor-browser

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

flexbox-basic-block-vert-001.xhtml (2017B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <!-- Testcase with blocks as flex items in a vertical flex container, with
      7     various "flex" values and various combinations of the items. -->
      8 <html xmlns="http://www.w3.org/1999/xhtml">
      9  <head>
     10    <title>CSS Test: Testing flexbox layout algorithm property on block flex items in 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/#layout-algorithm"/>
     13    <link rel="match" href="flexbox-basic-block-vert-001-ref.xhtml"/>
     14    <style>
     15      div { width: 50px; }
     16      div.flexbox {
     17        float: left;
     18        border: 1px dashed blue;
     19        height: 200px;
     20        font-size: 10px;
     21        display: flex;
     22        flex-direction: column;
     23      }
     24      div.a {
     25        flex: 1 0 30px;
     26        background: lightgreen;
     27      }
     28      div.b {
     29        flex: 2 0 20px;
     30        background: yellow;
     31      }
     32      div.c {
     33        flex: 3 0 40px;
     34        background: orange;
     35      }
     36      div.flexNone {
     37        flex: none;
     38        background: pink;
     39      }
     40      div.flexBasis {
     41        flex: 0 0 20px;
     42        background: gray;
     43      }
     44      div.spacer {
     45        width: 15px;
     46        height: 15px;
     47        background: purple;
     48      }
     49    </style>
     50  </head>
     51  <body>
     52    <div class="flexbox"><div class="a"></div><div class="b"/></div>
     53    <div class="flexbox"><div class="a"/><div class="c"/></div>
     54    <div class="flexbox"><div class="a"/>
     55      <div class="flexNone"><div class="spacer"/></div>
     56    </div>
     57    <div class="flexbox"><div class="b"/><div class="c"/></div>
     58    <div class="flexbox"><div class="b"/>
     59      <div class="flexNone"><div class="spacer"/><div class="spacer"/></div>
     60    </div>
     61 
     62    <div class="flexbox">
     63      <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/>
     64    </div>
     65  </body>
     66 </html>