title: Prevent text from wrapping when flex item has scrollbar
body: <p>I want to display content with a maximum height, but a variable width.</p>
  
  <p>If the content is too tall, then I want a specific child element to scroll, rather than the entire content.</p>
  
  <p>If I set <code>overflow-y: auto</code> on said child element, then if a scrollbar appears, the contents of the child element wrap when they wouldn't need to if they used more width (the width of a scrollbar).</p>
  
  <p>If I set <code>overflow-y: scroll</code>, then wrapping is avoided, but a scrollbar is shown even if not necessary.</p>
  
  <p>Any ideas of how to avoid the unnecessary wrapping without always showing a scrollbar?</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>.outer {
      display: flex;
      flex-direction: row;
  }
  
  .flex-container {
      display: flex;
      flex-direction: column;
      max-height: 200px;
  }
  
  .flex-container table {
      display: block;
      flex: 1 1 auto;
      overflow-y: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;div class="outer"&gt;
      &lt;div class="flex-container"&gt;
          &lt;p&gt;Top&lt;/p&gt;
          &lt;table class="table"&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td&gt;One two three four five&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;One two three four five&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;One two three four five&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;One two three four five&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
          &lt;p&gt;Bottom&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/0dnze1e7/" rel="nofollow">https://jsfiddle.net/0dnze1e7/</a></p>