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

> On screens, authors always want and expect 1px to be an integer number of device pixels.

Well, they don't get that today on a lot of phones, which conform to a small set of unofficial standard "mobile viewport" sizes (320px, 360px, 375px, 412px, 414px, 480px), but with a wide variety of actual pixel sizes which are often *not* an integer multiple of those numbers. ^_^

> but even assuming that this does work out, the best way to implement this may well be that on those correct platforms that do provide rock-solid monitor/display metrics for the browser to use, the UA could decide to anchor to the physical size, rather than the CSS px size?

This is allowed by the spec currently, yes. The only requirement is that `96px` must equal exactly `1in` (and the other physical units have their standard ratios with the inch), and that *either* `1px` has approximately the specified size as an arc measurement (aka a length that varies based on expected viewing distance) *or* that the other physical units have their correct value, as accurately as you can achieve.

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

Received on Tuesday, 7 April 2020 22:55:03 UTC