Re: [csswg-drafts] [css-values] Proposal for add a devcie pixel unit (#3715)

Note that even if we had this, updating layout during pinch-zoom is not acceptable, so it wouldn't actually be "1 device pixel", but rather "1 device pixel at the default zoom level". Similarly, transforms are paint-time operations, so 1device pixel would also not be 1device pixel if inside of a css transform.

Also, what's it supposed to do on devices that don't have a very clear sense of physical pixels, such as  when printing to PDF or paper?

If the use case is "a very thin line", it seems that `0.5px` or something similar actually is a pretty good answer, that will cope well with very high or very low density screen, far away screens as well as close ones, and various non pixel based media. Maybe we could introduce (via `calc()`?) some function that rounds a length to a physical number of pixels, to try and do some kind of pixel snapping, but I'm unconvinced it would help all that much.

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

Received on Friday, 8 March 2019 02:28:22 UTC