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.

Learning resources on MDN

Browser support (view on caniuse.com)

Baseline availability blocked since July 2015 by Safari (117 months)