title: Flexbox row wrapping issue in Safari
body: <p>I have a page being dynamically populated with blog posts and I'm using Bootstrap and flex to align them in a grid. This works just fine in the latest versions of Chrome, Firefox, and IE11, but it's not working in Safari version 8. In Safari, the first row wraps one box too early but the other rows wrap fine, which leaves a weird gap at the end of the top row. </p>
  
  <p><a href="https://jsfiddle.net/s1Leczfg/" rel="nofollow">See jsfiddle here</a></p>
  
  <p>CSS:</p>
  
  <pre><code>.flex-row {
      display: -webkit-flex;
      display: flex;
      -webkit-flex-direction: row;
      -webkit-flex-wrap: wrap;
      flex-direction: row;
      flex-wrap: wrap;
  }
  .single-post {
      padding: 50px 0 0;
      border: 1px solid #000;
      margin-bottom: 10px;
  }
  .posts__content-section {
      padding: 20px;
  }
  .button--more {
      padding: 5px;
      text-transform: uppercase;
      color: #fff;
      background: #000;
      font-size: 12px;
  }
  </code></pre>
  
  <p>HTML (added random values for testing):</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="row flex-row"&gt;
  
          &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a really really really really long title&lt;/h4&gt;
                   &lt;p&gt;this is a lot of words about stuff&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a really really really really long title&lt;/h4&gt;
                   &lt;p&gt;this is a lot of words about stuff&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;short title&lt;/h4&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a really really really really long title&lt;/h4&gt;
                   &lt;p&gt;this is a lot of words about stuff and things and stuff and other things and stuff&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a really really really really long title&lt;/h4&gt;
                   &lt;p&gt;this is a lot of words about stuff&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;sort of long title&lt;/h4&gt;
                   &lt;p&gt;some words&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a really really really really long title&lt;/h4&gt;
                   &lt;p&gt;this is a lot of words about stuff&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
                  &lt;!-- post --&gt;
          &lt;div class="col-lg-3 col-sm-4 col-xs-3 single-post"&gt;
              &lt;div class="col-lg-12 posts__content-section"&gt;
                  &lt;span&gt;september 30, 2015&lt;/span&gt;
                   &lt;h4&gt;this is a shorter title&lt;/h4&gt;
                   &lt;p&gt;and some more words&lt;/p&gt;
                   &lt;a href="#" class="button--more"&gt;Learn More&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /post --&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>