Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The read-only devicePixelRatio read-only property of the PaintWorkletGlobalScope interface returns the current device's ratio of physical pixels to logical pixels.