Back to Content

PaintWorkletGlobalScope: devicePixelRatio property

files/en-us/web/api/paintworkletglobalscope/devicepixelratio/index.md

latest644 B
Original Source

{{APIRef("CSS Painting API")}}{{SeeCompatTable}}

The devicePixelRatio read-only property of the {{domxref("PaintWorkletGlobalScope")}} interface returns the current device's ratio of physical pixels to logical pixels.

Value

A double-precision integer.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also