Re: [csswg-drafts] [css-values] Ability to address actual physical size (#614)

> Hard-coded density of 96dpi is ridiculous, having now smartphones with 760 ppi on the market.

The first and second parts of this sentence aren't connected.

Yes, 96px == 1in. But 1px is not necessarily related to the hardware pixels on the screen. 1px is *defined* as a particular visual angle at a particular distance; this definition matched "96 hardware pixels per physical inch" on some historical screens, but as you say, these days screens can have a wide range of vastly higher pixel densities, and so 1px can map to any reasonable number of hardware pixels, even fractional numbers of them (which is true on most mobile devices these days).

This means that 1in will be *approximately* 1 inch, but it can vary by a fair % based on exactly how the UA maps to its hardware pixels.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/614#issuecomment-588542083 using your GitHub account

Received on Thursday, 20 February 2020 00:14:15 UTC