Web platform features explorer

devicePixelRatio

Limited availability
Tags: api

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.

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)