Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 16 pt text on Windows is ⅓ larger than 16 pt text on macOS.

px != pt

It appears that Windows and Mac browser screenshots are misleading at best.

1px in CSS is logical unit that is equal to 1/96 of inch. On any platform.

And so neither 1px nor 1pt have anything with screen PPI (size of physical pixel measured by a ruler on screen surface).



So a 12px character on a 14" 1080p screen is the same size as a 12px character on an 18" 1080p screen? I'm still somewhat skeptical, despite fifty posts in this thread claiming just that.


In pixels, yes. In physical size, no (pixels are much smaller on 14" than on 18")


Right... but that puts the lie to "1px in CSS is logical unit that is equal to 1/96 of inch. On any platform"

It's rarely equal to 1/96 of an inch, in reality. It bounces all around.


In browser, yes. Screenshots are of Sublime Text, which is a native app.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: