UNPKG

polyfill-service

Version:
1 lines 816 B
{"browsers":{"safari":"4 - *","ie":"6 - 10","firefox":"<=17","ios_saf":"*"},"spec":"http://dev.w3.org/csswg/cssom-view/#dom-window-devicepixelratio","docs":"https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio","notes":["This polyfill just sets `devicePixelRatio` to 1 without attempting to measure it.","Older versions of Firefox are known to incorrectly alter the DPR on user zoom, but we don't (currently) correct for this"],"baseDir":"devicePixelRatio","hasTests":false,"rawSource":"\n// devicePixelRatio\n// The chances of a device that runs IE < 11 having a DPR of more than 1 are low enough that this is likely to offer the best reliability / performance / accuracy tradeoff\nthis.devicePixelRatio = 1;\n","minSource":"this.devicePixelRatio=1;","detectSource":"'devicePixelRatio' in this"}