4 ms·
Wasn't this the whole purpose of introducing em to replace points ?
by makeitdouble 3y ago
Wasn't this the whole purpose of introducing em to replace points ?
- lmm 3y agoWhy not just do the right thing with points? That way you'd also do the right thing with the billions of existing pages that will never be updated.
- makeitdouble 3y agoMy understanding is that there is no "right" thing. There will be cases where you want font sizes to be absolute and not vary depending on the system. For instance if it's text that comes with specific graphics of fixed size, or there are strong layout concerns bound to it. In other cases you'll want relative sizing and adjust to the user's system preferences as much as possible. That's a decision that has to be made site by site, element by element, which is why em are a recommandation, and couldn't blanket replace absolute units.