title: HTML5 flexible box model height calculation
body: <p>after researching the flexible box model for a whole day, I must say I really like it. It implements the functionality I implement in JavaScript in a fast and clean way. One thing however bugs me:</p>
  
  <p><strong><em>I can't expand a div to take the full size calculated by the flexible box model!!!</em></strong></p>
  
  <p>To illustrate it I'll proved an example. In it the two flexible places take the exact with and height, but the div inside it only takes the height of the <code>"&lt;p&gt;...&lt;/p&gt;"</code> element. For this example it doesn't matter but what I originally was trying was placing a "flexible box model" inside another "flexible box model" and this must be possible in my opinion</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body {
    font-family: Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
  }
  
  #box-1 {
    background-color: #E8B15B;
  
  }
  #box-2 {
    background-color: #C1D652;
  }
  #main {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  
  .flexbox {
    display:-moz-box;
    display:-webkit-box;
    display: box;
    text-align: left;
    overflow: auto;
  }
  H1 {
    width: auto;
  }
  #box-1 {
    height: auto;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
    box-orient: vertical;
  
    -moz-box-flex: 3;
    -webkit-box-flex: 3;
    box-flex: 3;
  }
  #box-2 {
    height: auto;
    min-width: 50px;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
    box-orient: vertical;
  
    -moz-box-flex: 1;
    -webkit-box-flex: 1;
    box-flex: 1;
  }
  #fullsize{
    background-color: red;
    height: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="main" class="flexbox"&gt;
    &lt;div id="box-1" class="flexbox"&gt;
      &lt;div id="fullsize"&gt;
        &lt;p&gt;Hallo welt&lt;/p&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
    &lt;div id="box-2" class="flexbox"&gt; 
  
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>