title: How to create a flex item that shrinks before it wraps?
body: <p>As can be seen in this <a href="https://jsfiddle.net/pmf58kgp/" rel="noreferrer">JS-Fiddle</a>, I basically try to use this CSS to create two divs that should fullfill these requirements:</p>
  
  <ul>
  <li>If twice the space of the wider item is available, both should use 50% width (that works)</li>
  <li>If not enough space for both items is available, they should wrap (that works)</li>
  <li>If enough space is available for both items, but less than twice the width of the wider one, the narrower item should shrink (that does NOT work, it wraps)</li>
  </ul>
  
  <p>I don't understand this behavior, because I have set <code>flex-shrink</code> for the flex items, so they should be able to shrink - but they don't: If the narrower item would be less than 50% wide, it wraps.</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>.m {
    display: flex;
    flex-wrap: wrap;
  }
  
  .l_1 {
    background-color: red;
    flex: 1 1 50%;
  }
  
  .r_1 {
    background-color: yellow;
    flex: 1 1 50%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class=m&gt;
  
    &lt;div class=l_1&gt;
      left_______________________________________________X
    &lt;/div&gt;
  
    &lt;div class=r_1&gt;
      right
    &lt;/div&gt;
  
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>(Tested on Firefox and Chrome)</p>