Issue metadata
Sign in to add a comment
|
window.getComputedStyle()['zoom'] return different zoom value
Reported by
raz.alka...@experitest.com,
Oct 29
|
||||||||||||||||||||||
Issue descriptionSteps to reproduce the problem: 1. Download Chrome beta(71) to your Android device 2. Connect your Android device to your computer 3. Open Chrome beta(71) on your Android device and navigate to "www.google.com" 4. In your computer - connect to remote device(using Developer tools) 5. Click on the console tab 6. Run the following line: "var zoom = window.getComputedStyle(document.documentElement)['zoom'];" What is the expected behavior? zoom value will be the same for chrome 70 and 71. What went wrong? My devices are Samsung J6 and Samsung S8 Zoom value is different between Chrome 60-70 and Chrome 71. Samsung S8 + chrome 70 zoom is 1.0 Samsung S8 + chrome 71 zoom is 3.0 Can you please explain why you change the zoom attribute value? Did this work before? N/A Chrome version: 71.0.3578.20 Channel: beta OS Version: 8.0.0 Flash Version:
,
Nov 1
Thanks for the report - I believe this is an expected result of issue 737777 ("use zoom for DSF"). That is, the 3x scale between physical pixels and CSS pixels on your Android device is now nearly the exact same feature as hitting Ctrl-+ to zoom to 300% on desktop. Is this causing a site compatibility issue for you at all or anything? I'm not sure we've fully considered the implication of the 'zoom' computed style value changing...
,
Nov 1
,
Nov 2
Changing the status to assigned as per c#2. Also removing Needs-triage-Mobile label, please feel free to add if any further triage is required. Thanks!
,
Nov 2
#2 is correct. To add, this is already the case on all desktop platforms except Mac; the computed zoom style (without any ctrl-+ zoom) is equal to the density of your display. We haven't seen this cause issues on desktop (granted, there's fewer and less weird display densities on desktop) so I'd be interested to hear if this is causing an issue.
,
Nov 6
,
Dec 14
,
Yesterday
(40 hours ago)
As far as I know, window.getComputedStyle()['zoom'] is not a good way to get zoom factor. Since there is no good way to get this value, I'm proposing adding window.pageZoomFactor to cssom-view to better resolve this issue: https://github.com/w3c/csswg-drafts/issues/3538
,
Yesterday
(40 hours ago)
(still keep this issue as won'tfix. Will open a new bug for adding the new factor) |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by jbanavatu@chromium.org
, Oct 30