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

Yep. It's in the spec.

http://www.w3.org/TR/CSS2/syndata.html#length-units

"pt: points — the points used by CSS are equal to 1/72nd of 1in.

px: pixel units — 1px is equal to 0.75pt.

The reference pixel is the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length. For a nominal arm's length of 28 inches, the visual angle is therefore about 0.0213 degrees. For reading at arm's length, 1px thus corresponds to about 0.26 mm (1/96 inch)."

So pixel units are intrinsically tied to dpi. Nobody cared when most monitors were 72dpi/96dpi



People did care. Monitors aren't everything. Printers are typically at least 300dpi, and printing that at 1:1 would result in minuscule text.




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

Search: