flamejs/flame.js — pull request #31 by williamcoates (2012-05-10 07:52:24+00:00)
Title: Add a simple way to measure text height and width via Flame.measureString

You should supply the classes for the parent elements, and the classes for the element you want to measure. This isn't enough to emulate complicated stylesheets with immediate child selectors (>), but might be good enough for the majority of cases.