title: Full width flex items when in a single "column"
body: <p>I have a simple flexbox set up where items have a fixed width and nicely wrap to the next row when needed:</p>
  
  <p><a href="https://i.stack.imgur.com/280Mc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/280Mc.png" alt="enter image description here"></a></p>
  
  <p>However, when the parent element width is small enough and elements appear all in a single column, the whitespace to the right of the elements can look quite awkward:</p>
  
  <p><a href="https://i.stack.imgur.com/gtbao.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gtbao.png" alt="enter image description here"></a></p>
  
  <p>Is there a simple way to keep the behavior in the first screenshot, but have elements fill the full width of the parent element when in a single "column"? I can't use media queries as far as I know because I need things to be relative to a specific parent element and not the whole screen width. Things would look like this ideally in the one column case:</p>
  
  <p><a href="https://i.stack.imgur.com/FMWN6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FMWN6.png" alt="enter image description here"></a></p>
  
  <p>Sample code below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.cont {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
  }
  
  .item {
    flex: 0 1 auto;
    width: 200px;
    height: 50px;
    border: 1px solid black;
    background: red;
    margin-right: 10px;
    margin-bottom: 10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="cont"&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>