web api instance property
PaintWorkletGlobalScope: devicePixelRatio property
Limited availability
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.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.