PaintWorkletGlobalScope: devicePixelRatio property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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
| Specification |
|---|
| CSS Painting API Level 1> # dom-paintworkletglobalscope-devicepixelratio> |
Browser compatibility
Loading…