gend>Legend</legend>
  <div>Contents</div>
</fieldset>
<fieldset class="min-content border-box">
  <legend>Legend</legend>
  <div>Contents</div>
</fieldset>
<fieldset class="max-content content-box">
  <legend>Legend</legend>
  <div>Contents</div>
</fieldset>
<fieldset class="max-content border-box">
  <legend>Legend</legend>
  <div>Contents</div>
</fieldset>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
for (let fieldset of document.quer