Input

Measured layout

Lines: 0
Height: 0px
Pretext measures multiline text without touching the DOM. Resize the width and see the line count and height update.

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().