logoalt Hacker News

cedillatoday at 3:24 PM2 repliesview on HN

No one decided to break it, it was 1/96th of an inch from the beginning.

The problem with different screens having different pixel densities was already present and obvious in 1996.

"Real" pixels are useless if you don't know anything about the screen you're going to render on.


Replies

mananaysiempretoday at 3:39 PM

It was around 1/96" on a conventional PC screen because that was the conventional pixel density for PC screens; it was 1/72" (i.e. 1pt) on a conventional Mac screen for the same reason. That was something to deal with already in the GIFs-in-tables era and remained one as we moved on to CSS, right until Retina happened.

Unfortunately, Retina gave us a nonsensical and hacky “scaling ratio” rather than separate and independent units of physical length, viewing angle, and interaction granularity. (I still can’t get an A4 PDF in GNOME to display at “100%” such that it would actually be 210mm wide on my screen. And Darktable is the only piece of software I know where you can configure ppi and ppd separately.)

cedillatoday at 3:28 PM

Correction: in CSS1, from December 1996, a pixel was defined slightly differently, which works out to 1/90th of an inch.