Re:I am the fold (2015)
by 8n4vidtmkvmk on Friday December 29, 2023 @03:05AM
(#38802696)
I want a CSS var for dppx so I can rescale a canvas element to it's native resolution. This is hard to do without JS right now but if you don't, your graphics will be blurry.
Also, 14" notebooks such as the MacBok Pro are notorious in their own right, they have a viewport width of about 1300 CSS "pixels" and about 2560 physical pixels on the horizontal axis (DPR around 2).
Many web devs fail to consider DPR in their media queries. Plainly speaking, a 14" MBP has less "CSS pixels" than a cheap 14" laptop with 1920x1080 physical pixels and a DPR of 1.