PaintWorklet.devicePixelRatio

Draft
This page is not complete.

The PaintWorklet.devicePixelRatio read-only property of the PaintWorklet interface returns the current device's ratio of physical pixels to logical pixels.

Syntax

var devicePixelRatio = paintWorklet.devicePixelRatio;

Value

A double-precision integer.

Specifications

Specification Status Comment
CSS Painting API Level 1
The definition of 'PaintWorklet.devicePixelRatio' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.PaintWorklet.PaintWorklet.devicePixelRatio" (depth: 1) to the MDN compatibility data repository.

 

See Also