Windows 10 scale changes devicePixelRatio
Reported by
m...@craig-mitchell.com,
Nov 20 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 Steps to reproduce the problem: 1. Change Windows "Scale and Layout" to be something other than 100%. 2. Visit https://quirksmode.org/m/tests/widthtest.html 3. devicePixelRatio is set to what you set in Windows. What is the expected behavior? devicePixelRatio should be 1. devicePixelRatio should only change when the user zooms. What went wrong? I am forced to take into account devicePixelRatio to get the actual value for window.innerWidth, so my page renders correctly. However, when I do this, it stops the user from being able to zoom my page, as I am taking into account devicePixelRatio, and that then offsets the zoom. Did this work before? N/A Chrome version: 62.0.3202.94 Channel: stable OS Version: 10.0 Flash Version: We need a devicePixelRatio and a zoomedValue, so we can tell what is really happening.
,
Nov 20 2017
The behavior you are observing seems to be consistent with the specification, found here: https://drafts.csswg.org/cssom-view/#dom-window-devicepixelratio I am closing this bug since the browser seems to be working as intended. However, if you do find discrepancies with the specification, please let us know, and we can re-open the issue. Also, if you find that the behavior is inconsistent between browsers and are not sure which browser is doing the right or wrong thing, let us know and we'll gladly take a deeper look. Finally, if you have ideas to improve the design of this API, you can participate in improving the standard. This particular feature is developed by the W3C CSS working group (I know, it's not really a CSS feature, but it is style-related). To engage, you don't have to be a member of the W3C, anyone can file issues against the specification's GitHub repository, found here: https://github.com/w3c/csswg-drafts/issues Alternately, you can start a discussion on the working group's public-facing mailing list: https://lists.w3.org/Archives/Public/www-style/ |
||
►
Sign in to add a comment |
||
Comment 1 by m...@craig-mitchell.com
, Nov 20 2017