<!DOCTYPE html>
<body style="width: 0px">
  <fieldset>
    <legend style="white-space:normal">There is some longish text here; there really is</legend>
  </fieldset>
</body>