"cb">
  <div class="test max-width" style="max-width: max-content" data-expected-width="110">XX XX</div>
</div>
<div class="cb">
  <div class="test max-width stretch" data-expected-width="90">XX XX</div>
</div>

<div class="cb">
  <div class="test width" style="width: initial" data-expected-width="90">
    <canvas width="20" height="10" data-expected-width="80" data-expected-height="40"></canvas>
  </div>
</div>
<div class="cb">
  <div class="test width" style="width: min-content" data-expected-width="10">
