title: CSS columns break elements apart in Chrome even with break-inside:avoid;
body: <p>One issue with Flexbox is that the entire row's height changes to match the biggest element in it, thus not achieving a Masonry-type layout.</p>
  
  <p>I am currently trying to use Semantic UI's <a href="https://semantic-ui.com/views/card.html" rel="nofollow noreferrer"><code>card</code> views</a> together with <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts" rel="nofollow noreferrer">CSS columns</a> instead of their <code>cards</code> class to avoid this issue.</p>
  
  <p>The problem with that is that Chrome seems to break apart the card element into various places in the columns while Firefox renders it just fine. It seems that the <code>break-inside</code> CSS property is intended to fix this, but it doesn't seem to work in Chrome.</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>body {
      padding: 10px;
      width: 100%
  }
  
  .container {
      padding: 15px;
      -moz-column-count: 5;
      -moz-column-gap: 10px;
      -webkit-column-count: 5;
      -webkit-column-gap: 10px;
      column-count: 5;
      column-gap: 10px;
      width: 100%;
  }
  
  .container &gt; .card {
      width: 90% !important;
      display: inline-block !important;
      margin-top: 0px !important;
      -webkit-column-break-inside: avoid !important;
      page-break-inside: avoid !important;
      break-inside: avoid-column !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.css" rel="stylesheet"/&gt;
  &lt;div class="container"&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="ui card"&gt;
    &lt;div class="image"&gt;
     &lt;img src="http://via.placeholder.com/150x150"&gt;
    &lt;/div&gt;
    &lt;div class="content"&gt;
     &lt;a class="header"&gt;Kristy&lt;/a&gt;
     &lt;div class="meta"&gt;
      &lt;span class="date"&gt;Joined in 2013&lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="description"&gt;
      Kristy is an art director living in New York.
     &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="extra content"&gt;
     &lt;a&gt;
      &lt;i class="user icon"&gt;&lt;/i&gt; 22 Friends
     &lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://codepen.io/galaxymover/pen/KqQRvX" rel="nofollow noreferrer">A CodePen with the example code</a></p>
  
  <p>As you can see in the below screenshots, the content of the cards flies back to the previous column while the image stays where it should.</p>
  
  <p><a href="https://i.stack.imgur.com/CALOj.png" rel="nofollow noreferrer">Screenshot of Chrome full page render</a></p>
  
  <p><a href="https://i.stack.imgur.com/c7WL1.png" rel="nofollow noreferrer">Screenshot of Chrome windowed render</a></p>
  
  <p><a href="https://i.stack.imgur.com/aQgZi.png" rel="nofollow noreferrer">Screenshot of Firefox full page render</a></p>