3 ms·
User experience regarding content is more important than a pixel-perfect layout, which is a pipe dream anyway nowadays.
by eurasiantiger 4y ago
User experience regarding content is more important than a pixel-perfect layout, which is a pipe dream anyway nowadays.
- lelandfe 4y agoSure, I understand the desire behind it. In practice, using a "ch" value for width is identical in behavior to just measuring out your intended width with absolute pixel values. Which is to say, neither of them accomplish the goal.
- eurasiantiger 4y agoAnd what would accomplish the goal?
- lelandfe 4y agoCSS doesn't have a unit that does, frankly... Content-oriented things are slowly coming, though. You can see that in properties like `line-clamp`. (I suspect that a unit that actually expresses characters-per-line is difficult at a performance level)