tor-browser

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

flex-grow-008.html (1123B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: flex-grow - frozen items act as their frozen size</title>
      4 <link rel="author" title="Tab Atkins-Bittner" href="https://xanthir.com/contact/">
      5 <link rel="help" title="Section 9.7, steps 4 and 5.e" href="http://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name="assert" content="Test checks that items which become frozen due to a max-size violation use that clamped size in later steps to determine free space, so other children can grow to fill the space freed up by fixing the violation.">
      8 <style>
      9  .container {
     10    background-color: red;
     11    display: flex;
     12    height: 100px;
     13    width: 100px;
     14  }
     15  .frozen-child {
     16    flex-grow: 1;
     17    max-width: 0px;
     18    background: red;
     19  }
     20  .non-frozen-child {
     21    flex-grow: 1;
     22    background: green;
     23  }
     24 </style>
     25 <body>
     26  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     27  <div class="container">
     28    <div class="frozen-child"></div>
     29    <div class="non-frozen-child"></div>
     30  </div>
     31 </body>