Issue metadata
Sign in to add a comment
|
window.devicePixelRatio incorrect for hi-DPI screens on Windows
Reported by
dan...@d15.biz,
Apr 23 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36 Steps to reproduce the problem: Some sites use window.devicePixelRatio to determine whether to serve 1x or 2x assets. A MacBook Pro Retina running Mac OS has this set to 2, but a high-DPI device running Windows (for example, Lenovo X1 Yoga) returns 1. System -> Display -> "Change the size of text, apps, and other items" is set to 200%, which should imply a pixel ratio of 2. What is the expected behavior? window.devicePixelRatio should be 2 What went wrong? window.devicePixelRatio is 1 Did this work before? N/A Chrome version: 50.0.2661.87 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 21.0 r0 Edge correctly returns 2 on the same system.
,
Apr 25 2016
,
Oct 4 2016
This looks like a symptom of not supporting multi-monitor DPI. I just tested on Canary where support is currently turned on and window.devicePixelRatio returns 1.5 on my 150% monitor and 1.25 on my 125% monitor. Marking this as duplicate. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by dan...@d15.biz
, Apr 23 2016