I have been looking around the web to find what browser support there is for window.devicePixelRatio
, without much luck.
Does anyone know what browers/devices support this?
I have been looking around the web to find what browser support there is for window.devicePixelRatio
, without much luck.
Does anyone know what browers/devices support this?
According to this blog post : ( from 2012 )
window.devicePixelRatio
is mostly trustworthy on most browsers.devicePixelRatio
byscreen.width
to get the physical pixel count.screen.width
bydevicePixelRatio
to get the dips count.2017 UPDATE:
Desktop browsers support:
Mobile Browsers:
Draft Spec