3 ms·
I don't get it. Does Safari not support Zoom? Is per site zoom not the exact perfect concession to user preference? The font size settings are quite lethal unle
by rerdavies 2y ago
I don't get it. Does Safari not support Zoom? Is per site zoom not the exact perfect concession to user preference? The font size settings are quite lethal unless you size EVERY THING on the page using ems -- your images, your icons, your padding, your margins: all have to be in ems if you want things to scale proportionally when font size changes. Nope. Not doing that.
If that's a horribly broken assumption on Safari, I'd be grateful if you could explain to me how it's broken.
- uhoh-itsmaciek 2y agoThe thing is, scaling font size does not necessarily mean you want to scale other aspects of the UI. Josh Comeau touches on that in this post: https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/ https://www.joshwcomeau.com/css/surprising-truth-about-pixel...
- tobr 2y ago> Nope. Not doing that. Why? I’ve started to use rlh as my base unit for almost everything, and it’s great as it automatically gives your whole design consistent vertical rhythm.
- JimDabell 2y ago> Is per site zoom not the exact perfect concession to user preference? That would be like if every television programme broadcast audio at a different volume, so every time you watched something new you had to adjust the volume. It’s insane. The browser already knows what size text the user prefers. The only thing you have to do is let them use it instead of overriding it with absolute units. If you’ve designed something that the user needs to change their settings to read, you’ve made a really bad design. > all have to be in ems if you want things to scale proportionally when font size changes. You don’t want most things to scale proportionally when font size changes. The goal of a good web design is not to have the exact same raster image appear at different sizes, the goal of a good web design is to be the best presentation for the current situation – which includes user preferences, what content you are displaying, the size of the viewport, etc. So, for instance, if you have a main content area in the middle of the page and sidebars on each side, then you might want to set a minimum and maximum width for them in ems so that the line lengths don’t get ridiculously long and it doesn’t get squashed, but the width should probably be proportional to the available horizontal width, so percentages or fr should be used for that property. There are some things that are closely related to the font size, so for instance you should use ems to set padding around text and margins between paragraphs. But that doesn’t mean that, say, the border should be set in ems. Basically, use the units for their designed purpose instead of thinking you need to use all of the same types of units everywhere.
- rerdavies 2y ago> That would be like if every television programme broadcast audio Well. No. It would be more like if every television program was displayed on a screen that had a different height, width, and scaling that may depend on the state of the browser at any given moment. Which is in fact the case. And is kind of the point of what we're trying to deal with here. What I do not get for the life of me is why you would introduce a dependency on a deeply obscure user preference that I, as a perfectly literate computer user, would not expect. As opposed to scale, which is completely in your face (and also has an obscure default setting in exactly the same place if that's what the issue is for you). And it's not like there aren't enough dependent variables I have to deal with to make sure that my UI is responsive across all common page sizes my app will encounter without introducing another one, whose benefit, frankly, just doesn't seem that compelling. Asking because I genuinely do not get it.
- JimDabell 2y agoIt’s not a deeply obscure user preference, it’s everyday life for millions of people. When you set up a new device, most operating systems have an accessibility step where you can pick the size of the text. That’s the user’s default and a lot of them don’t know how to change it on the fly for individual websites – and they shouldn’t have to because it’s crazy to expect them to adjust their settings every time they visit a new site. When websites fail to respect this, a lot of people simply get locked out of using them. Enough websites do it, and some of these people give up on the web entirely. For elderly people with vision problems, it can be especially isolating. The only thing you have to do here is not do anything. Literally just don’t use fixed font sizes. It takes extra effort to make life worse for people with vision problems. Just… don’t do that. It’s easier than fucking it up.
- rerdavies 2y agoCouldn't they just set the operating system's default SCALE instead?