by joostdecock · 4y ago · 0 comments
Many images are responsive and will take up whatever (typically horizontal) space is available. So by making the text larger, there's less space left for the images and they become smaller.
I don't think that makes it an anti-pattern. It's more of a quirk of how zooming is implemented in browsers.(or perhaps the feature's name is misleading).
Modern zoom on browsers is simply that: multiply everything by 1.1, 1.25 or whatever. This has been the case for probably a decade.
related, Firefox Android has: Settings -> Accessibility -> [allow] Zoom on all web sites
Ctrl +/- does not zoom, it changes the fontsize and devicePixelRatio.
Using a base size (the font size) and scaling everything relative to that using em solves many problems. Sites handle this differently and it is getting progressively worse, confusing screen readers.
https://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_...
https://fronteers.nl/congres/2012/sessions/a-pixel-is-not-a-...
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...