2 ms·
You can’t precompute the layout as in your † (that is, your results will be wrong), because you don’t know ahead of time what fonts will be used.
by chrismorgan 5y ago
You can’t precompute the layout as in your † (that is, your results will be wrong), because you don’t know ahead of time what fonts will be used.
- leephillips 5y agoThe technique requires a web font.
- chrismorgan 5y agoYou can’t depend on web fonts. They may fail to load for a variety of reasons, or be overridden for reasons of accessibility or user preference. In short, you can’t get it right in pure CSS, and once you require JavaScript anyway, there isn’t at least as much point in precomputing it.