title: CSS grid with auto-fill and auto size
body: <p>I'm trying to use CSS grid with <strong>grid-template-columns: repeat(auto-fill, auto)</strong>, cells are being set to maximum width, causing one item per row.</p>
  
  <p>Is it possible to have the grid cell width automatically set by the items width? I have tried inline-grid/grid-auto-flow : column, but the items do not wrap with these properties. </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>.wrapper {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, auto);
    color: #444;
  }
  
  .box1 {
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    padding: 20px;
    font-size: 150%;
    width: 250px;
  }
  
  .box2 {
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    padding: 20px;
    font-size: 150%;
    width: 350px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;div class="box1 a"&gt;A&lt;/div&gt;
    &lt;div class="box1 b"&gt;B&lt;/div&gt;
    &lt;div class="box2 c"&gt;C&lt;/div&gt;
    &lt;div class="box2 d"&gt;D&lt;/div&gt;
    &lt;div class="box1 e"&gt;E&lt;/div&gt;
    &lt;div class="box2 f"&gt;F&lt;/div&gt;
    &lt;div class="box1 g"&gt;G&lt;/div&gt;
    &lt;div class="box2 h"&gt;H&lt;/div&gt;
    &lt;div class="box1 i"&gt;I&lt;/div&gt;
    &lt;div class="box2 j"&gt;J&lt;/div&gt;
    &lt;div class="box2 k"&gt;K&lt;/div&gt;
    &lt;div class="box2 l"&gt;L&lt;/div&gt;
    &lt;div class="box1 m"&gt;M&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>