title: Auto-sizing width with fit-content in css
body: <p>I'm trying to prevent a parent division to be smaller than it's children using <code>min-width</code> and <code>fit-content</code>.</p>
  
  <p>I first setup a division <code>.parent</code> with a <code>min-width: fit-content</code>. I, then added, a child with <code>width: 100px</code> and <code>min-width: fit-content</code>. Finaly, I added enough characters to the children to bust the <code>100px</code>;</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>.parent {
    border: 1px solid red;
    width: fit-content;
  }
  
  .children {
    border: 1px solid green;
    min-width: fit-content;
    width: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="parent"&gt;
    &lt;div class="children"&gt;
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>DEMO:
  <a href="https://codepen.io/osasseville/pen/NadrgB?editors=1100" rel="noreferrer">https://codepen.io/osasseville/pen/NadrgB?editors=1100</a></p>
  
  <p>I would expect the parent to fit the content of the children, which fit the content of the characters.</p>
  
  <p>Strangely, if I change the children's width to 1%, the <strong>min-width is respected</strong>.</p>