title: CSS grid layout is broke by hiding children
body: <p>Having CSS with dynamically displayable items how do I avoid layout breakages? Hiding button A shift Edit button to the left, while I'd expect it to stick to the right edge of the grid.</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-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;body&gt;
    &lt;div style="width: 250px; border: 1px solid #ccc; display: grid; grid-template-columns: repeat(3, min-content) auto min-content;"&gt;
      &lt;button _style="display: none;"&gt;A&lt;/button&gt;
      &lt;button&gt;B&lt;/button&gt;
      &lt;button&gt;C&lt;/button&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;button style="margin: auto; padding: 5px;"&gt;Edit&lt;/button&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>