">
  <div class="grid" style="width: min-content; height: min-content;" data-expected-width="300" data-expected-height="200">
    <div class="item" data-offset-x="200" data-offset-y="150" data-expected-width="100" data-expected-height="50"></div>
  </div>
</div>

<div class="wrapper">
  <div class="grid" style="width: max-content; height: max-content;" data-expected-width="300" data-expected-height="200">
    <div class="item" data-offset-x="200" data-offset-y="150" data-expected-width="100" data-expected-h