tor-browser

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

flex-shrink-002.html (1172B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: flex-shrink - number(negative)</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.2. The 'flex-shrink' property" href="http://www.w3.org/TR/css-flexbox-1/#flex-shrink-property">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="The flex-shrink property set negative is invalid to shrink flex items when negative free space is distributed">
      9 <style>
     10  #container {
     11    background-color: red;
     12    display: flex;
     13    height: 100px;
     14    width: 100px;
     15  }
     16  #container div {
     17    height: 100px;
     18    width: 100px;
     19  }
     20  #test1 {
     21    flex-shrink: -2;
     22  }
     23  #test2 {
     24    background-color: green;
     25    flex-shrink: -3;
     26  }
     27  #cover {
     28    background-color: green;
     29    height: 100px;
     30    margin-top: -100px;
     31    width: 50px;
     32  }
     33 </style>
     34 <body>
     35  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     36  <div id="container">
     37    <div id="test1"></div>
     38    <div id="test2"></div>
     39  </div>
     40  <div id="cover"></div>
     41 </body>