Experiment with @chenglou/pretext by measuring multiline text without DOM reads. Adjust the text and
layout controls to see how the height and line count change.
The box height is driven by Pretext's layout() result, so adding more text or shrinking the width
increases the measured height without relying on getBoundingClientRect().