A look at Pretext, a new JS library that solves the problem of calculating multi-line text height without touching the DOM, enabling highly dynamic layouts
Pretext solves the problem of calculating the height of a paragraph of line-wrapped text without touching the DOM.