title: Flex vertical alignment issue
body: <p>I had a row of inline-block elements which wrapped nicely on a new line if did not fit:</p>
  
  <p><a href="https://i.stack.imgur.com/1JKvR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1JKvR.png" alt="vertically aligned inline-block elements"></a></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>.buttons div {
    display: inline-block;
    padding: 0.3em;
    margin: 0.3em;
    border: 1px dotted red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  &lt;div class="buttons"&gt;
      &lt;div&gt;Some text here&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;&lt;/span&gt;Some text here&lt;/div&gt;
      &lt;div&gt;Some text here&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;&lt;/span&gt;Some text here&lt;/div&gt;
      &lt;div&gt;Some text here&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;&lt;/span&gt;Some text here&lt;/div&gt;
      &lt;div&gt;Some text here&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;&lt;/span&gt;Some text here&lt;/div&gt;
      &lt;div&gt;Some text here&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;&lt;/span&gt;Some text here&lt;/div&gt;    
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/hendricson/knb554rk/2/" rel="nofollow noreferrer">JSFiddle link #1</a></p>
  
  <p>Now I'm changing the layout to flex like that:</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>.buttons div {
    display: inline-flex;
    padding: 0.3em;
    margin: 0.3em;
    border: 1px dotted red;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>And the elements are not longer vertically aligned:</p>
  
  <p><a href="https://i.stack.imgur.com/VCeBW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCeBW.png" alt="inline-flex elements are not longer vertically aligned"></a></p>
  
  <p><a href="https://jsfiddle.net/hendricson/knb554rk/3/" rel="nofollow noreferrer">JSFiddle link #2</a></p>
  
  <p>How to get the row of div elements shown in the HTML snippet above to look like on my first image, but with flex? </p>