devicePixelRatio
Limited availability
The window.devicePixelRatio
property is the ratio of the size of one CSS pixel to the vertical size of one physical pixel on the current display device.
Learn more
Specifications
Browser support (view on caniuse.com)
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 18 Released on 2013-01-08
- Firefox for Android 18 Released on 2013-01-08
- Safari ❌
- Safari on iOS ❌
Baseline availability blocked since July 2015 by Safari (120 months)
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist