News for hackers. Stuff that matters.
Re:PX or REM in CSS? Just Use REM by muspimerol on Saturday December 03, 2022 @05:41PM (#33848236)
Exactly, zooming and base font size are two fundamentally different things. Forcing users to zoom to get a legible text size is not an acceptable solution.
Re:PX or REM in CSS? Just Use REM by cuu508 on Saturday December 03, 2022 @05:57PM (#33848362)
Wouldn't users also want legible icons, pictures, margins, etc.?
Re:PX or REM in CSS? Just Use REM by Filligree on Saturday December 03, 2022 @06:55PM (#33848859)
Most pictures can be shrunk significantly and remain legible. They don't need to be zoomed in on.
Re:PX or REM in CSS? Just Use REM by layer8 on Sunday December 04, 2022 @12:24AM (#33850872)
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.
Re:PX or REM in CSS? Just Use REM by muspimerol on Sunday December 04, 2022 @07:34AM (#33853105)
No, not really. The browser setting is for default _font_ size for a reason. People want legible text. Design elements like icons, pictures, margins are generally decorative and not functional. If a user wants to set a default _zoom_ level, then they can set that as well. As I said, these are two different things.
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.