News for hackers. Stuff that matters.
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by rwalle on Monday June 10, 2024 @07:52AM (#40632575)
So why does HN text look so small under default settings on the desktop, and I always need to zoom to 133% to match the font size on other websites (that require no special treatment)? Am I using the browser wrong, or something is not quite right with HN? I am inclined to think the latter.
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by louis-lau on Monday June 10, 2024 @08:28AM (#40632844)
The font site is 9pt. It's just small. Not sure where someone got 12px from. The measurement is resolution independent, yes.
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by SassyBird on Monday June 10, 2024 @09:05AM (#40633181)
9pt == 12px on the web. You can check that in Web Inspector in computed styles.

Alternatively:

  1px = (1/96)in
  1pt = (1/72)in = (1/72)*(96/72)*(72/96)in = (96/72)*(1/96)in = (4/3)*1px = (4/3)px
  9pt = 9*1pt = 9*(4/3)px = 12px
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_...
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by rob on Monday June 10, 2024 @08:30AM (#40632854)
2560x1440 and ~12px on HN looks incredibly small.

I just switched the resolution to 1024x768, and now the same ~12px is "larger" and easier to read without needing to increase my browser zoom.

There's an obvious visual difference between the two.

Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by SassyBird on Monday June 10, 2024 @09:50AM (#40633685)
Without HiDPI (sic!) scaling that means that a correctly-sized display for that resolution would have a 30" diagonal on Windows (standard PPI: 96) and 40" on Mac (standard PPI: 72). If you don’t have HiDPI (sic!) scaling enabled in your system and your display is smaller than that, then you’re basically browsing everything zoomed out.
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by account42 on Monday June 10, 2024 @09:17AM (#40633320)
Then your setup is not compliant with web standards. Most likely you need to enable DPI scaling somewhere.
Re:WebKit fix: Quirk news.ycombinator to skip TextAutoSizing by wruza on Monday June 10, 2024 @08:31AM (#40632866)
I always need to zoom 125-130% on all sites on top of 125% desktop system zoom and HN needs no special treatment. E.g. wikipedia is basically the same.

Anyway, you can set [default] zoom once and enjoy.

Unless you’re in a browser in which no one uses that per-site zoom feature cause it’s not implemented cause no one uses it. In this case, you can embrace the simplicity or use StyleBot.