title: Rendering problems using flexbox in Firefox and Chrome 48
body: <p><strong>On chrome 47 (correct behavior):</strong>
  On chrome 47, that div with <code>.scroll</code> is scrolling correctly, taking height 100% using flex.</p>
  
  <p><strong>On firefox (wrong behavior):</strong>
  While on firefox, that div with <code>.scroll</code> is using the content height and not scrolling properly.</p>
  
  <p>What is the cross-browser solution to this problem?</p>
  
  <p><a href="http://jsfiddle.net/d4nkevee/" rel="nofollow">http://jsfiddle.net/d4nkevee/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for (var i = 0; i &lt; 100; i++)
    $(".scroll").append("Dynamic content&lt;br&gt;");</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body,
  html {
    margin: 0;
    padding: 0;
  }
  .container {
    box-sizing: border-box;
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .content {
    background: yellow;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .scroll {
    flex: 1 1 auto;
    overflow: scroll;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    
    &lt;div class="bar"&gt;Small&lt;/div&gt;
    
    &lt;div class="content"&gt;
      
      &lt;div&gt;Static content&lt;/div&gt;
      &lt;div class="scroll"&gt;&lt;/div&gt;
      &lt;div&gt;Static content&lt;/div&gt;
      
    &lt;/div&gt;
    
    &lt;div class="footer"&gt;Small&lt;/div&gt;
    
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <hr>
  
  <p><strong>Question updated</strong> to distinguish between Chrome 47 and Chrome 48.</p>