Get some text's offsetWidth without rendering it in the DOM