r: solid 5px blue;"></div>
  <div data-expected-width="40"></div>
</div>

<pre>grid-template-columns: minmax(auto, 0px) minmax(auto, 0px); item width + margin + border + padding: 10px;</pre>

<div class="grid" style="grid-template-columns: minmax(auto, 0px) minmax(auto, 0px);">
  <div data-expected-width="8" style="width: 4px; margin: 1px; padding: 1px; border: solid 1px blue;"></div>
  <div data-expected-width="10"></div>
</div>

<pre>grid-template-columns: minmax(auto, 20px) minmax(auto, 20px); item width