Skip to content

Comment on CSS “px” is an Angular Measurement?

Comments

While an interesting bit of trivia... this is completely pedantic.

To say that it is "doesn't really have anything to do with screen pixels, despite the poorly chosen name" is just silly.

It's quite obvious that px means pixel, has everything to do with it, and that the non-linear angular measurement is just a kind of more "formal" definition, but which no browser has ever actually followed, or probably ever will.

A 91 ppi pixel is nothing like a 300 ppi pixel, so this "pedantic" definition matters. Particularly as retina-like displays become more and more common.

And whether they are doing it to the same accuracy as this article recommends or not, browsers are not simply rendering 1px as one pixel width regardless of the display resolution - My 2 year old iPad with a retina display demonstrates this well.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.