Web platform features explorer

devicePixelRatio

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.

Status

Limited availability

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 (125 months)

Developer signals

Votes: 0

If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.