News for hackers. Stuff that matters.
Re:PX or REM in CSS? Just Use REM by IshKebab on Saturday December 03, 2022 @05:59PM (#33848377)
Why not? If you have trouble reading text are you not also going to have trouble reading icons, pictures, etc. too?
Re:PX or REM in CSS? Just Use REM by layer8 on Sunday December 04, 2022 @12:26AM (#33850883)
It depends on the icons and pictures. With pixel-based graphics, you want to keep those 1:1 for crispness, and not get a blurry interpolation due to zooming, at least on lower-DPI screens. And the custom base font size may just be e.g. two pixels larger than the default for comfortable reading.
Re:PX or REM in CSS? Just Use REM by IshKebab on Sunday December 04, 2022 @05:07AM (#33852228)
That seems like a very weak reason. High DPI screens are common now, as is SVG. And slightly blurry pixels is hardly the end of the world is it?

If that's the only problem I'll stick with px.

Re:PX or REM in CSS? Just Use REM by layer8 on Sunday December 04, 2022 @09:38AM (#33854049)
Low-DPI screens (e.g. Full-HD) are common on desktop systems and laptops, and will remain so for the foreseeable future, due to their lower cost. Pixel-based icons look better on those than vector icons. “Slightly blurry” is the bane of the modern web on those displays. I’m just telling you there’s a reason why some people prefer increasing only the text size — it makes for a better UX.
Re:PX or REM in CSS? Just Use REM by muspimerol on Sunday December 04, 2022 @07:40AM (#33853146)
That's what the default zoom level is for. There are plenty of people who just need slightly larger text so they can read, but don't want to zoom in every element of the page. Why are you making assumptions about what users want instead of just supporting basic web browser defaults? It's really not that difficult to support.