tor-browser

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

flex-grow-006.html (1109B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: flex-grow - positive number(fill all space)</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
      6 <link rel="help" title="7.3.1. The 'flex-grow' property" href="http://www.w3.org/TR/css-flexbox-1/#flex-grow-property">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="Test checks that all space of flex container will be filled when there is only one flex item and 'flex-grow' set any positive number.">
      9 <style>
     10  .container {
     11    background-color: red;
     12    display: flex;
     13    height: 50px;
     14    width: 100px;
     15  }
     16  .container > div {
     17    background-color: green;
     18    height: 50px;
     19    width: 25px;
     20  }
     21  #test1 {
     22    flex-grow: 1.5;
     23  }
     24  #test2 {
     25    flex-grow: 2;
     26  }
     27 </style>
     28 <body>
     29  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     30  <div class="container">
     31    <div id="test1"></div>
     32  </div>
     33  <div class="container">
     34    <div id="test2"></div>
     35  </div>
     36 </body>