[csswg-drafts] [css-env] Device Pixel Ratio (#5986)

Crissov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-env] Device Pixel Ratio ==
As a result of [#614](https://github.com/w3c/csswg-drafts/issues/614#issuecomment-610424211), please add environment variables:

+ `env(device-pixel-ratio)`
+ `env(device-pixel-ratio-x)`
+ `env(device-pixel-ratio-y)`

This is a `<number>` constant, which can be used verbatim as a multiplier or divisor with a `<length>`, e.g. `calc(1mm * env(device-pixel-ratio, 1))`, to get from nominal, CSS millimeters to actual, SI millimeters etc. 

On media and devices where `px` depends on physical units and not the other way around (as on screens), this should always be set to `1.0`. Elsewhere, it should not deviate a lot from this. 

I included horizontal and vertical variants, because not all pixels are square.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5986 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 February 2021 12:19:11 UTC