matthewlein/Modernizr — comment on commit 40cb3a69f6ee6e4caa5cdcd1a66b5098bed16a7a
File:  line 0
By ryanve:

I think you want to use `window.devicePixelRatio >= 1.5` if you want to be consistent with the media query. Webkit definitely supports `window.devicePixelRatio` and so does Opera since Presto 2.8. You could simplify it to this:

```javascript

var dPR = window.devicePixelRatio
, str = 'only screen and (min--moz-device-pixel-ratio:1.5)'
;//var

return dPR && dPR >= 1.5 || Modernizr.mq(str) || Modernizr.mq(str.replace('-moz', ''));
```