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.
## Specifications
## Browser compatibility
## See also
- [CSS.paintWorklet](/docs/Web/API/CSS/paintWorklet_static)
- [Worklet](/docs/Web/API/Worklet)
- [CSS Painting API](/docs/Web/API/CSS_Painting_API)
- [Houdini APIs](/docs/Web/API/Houdini_APIs)
- [window.devicePixelRatio](/docs/Web/API/Window/devicePixelRatio)
source: MDN Web Docs mirror · page
Cite this
"PaintWorkletGlobalScope: devicePixelRatio property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope/devicePixelRatio JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy