-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Labels
Description
As a result of #614, 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.
davelab6, graphicore, gepardec-wf and bleperfrivoal and jonjohnjohnson