PaintWorkletGlobalScope: devicePixelRatio property
CSS Painting API
CSS Painting API
The devicePixelRatio read-only property of the PaintWorkletGlobalScope interface returns the current device's ratio of physical pixels to logical pixels.
Value
A double-precision integer.