4 ms·
It’s odd how they seemed to know the difference between browser zoom and font size settings, but came to that conclusion You should only use the unit that scal
by jacobp100 4y ago
It’s odd how they seemed to know the difference between browser zoom and font size settings, but came to that conclusion
You should only use the unit that scales with the font size setting for font size related properties. That’s font-size, line-height, and letter spacing
- shortcake27 4y agoYeah this. Directly scaling margin and padding with font size causes an accessibility _problem_ because the UI becomes unusable after a couple of steps, especially on mobile. If every unit scales with font size then you’ve basically invented zoom, which browsers already have. Dynamic Type on iOS is the perfect example. I have bad eyesight so I bump up the text size. This only affects the font size. It doesn’t scale the entire UI.