New issue
Advanced search Search tips

Issue 899707 link

Starred by 10 users

Issue metadata

Status: WontFix
Owner:
Closed: Yesterday
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression

Blocked on:
issue 737777



Sign in to add a comment

window.getComputedStyle()['zoom'] return different zoom value

Reported by raz.alka...@experitest.com, Oct 29

Issue description

Steps 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:
 
beta.PNG
84.6 KB View Download
chrome70.PNG
79.9 KB View Download
Labels: Needs-triage-Mobile
Blockedon: 737777
Cc: bokan@chromium.org rbyers@chromium.org
Components: -Blink Blink>Layout
Owner: eirage@chromium.org
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...

Labels: -Type-Bug M-71 FoundIn-71 Type-Bug-Regression
Labels: -Needs-triage-Mobile
Status: Assigned (was: Unconfirmed)
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!
#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.
Status: WontFix (was: Assigned)
Cc: eirage@chromium.org
 Issue 912434  has been merged into this issue.

Comment 8 Deleted

Comment 9 by eirage@chromium.org, Yesterday (40 hours ago)

Status: Assigned (was: WontFix)
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

Comment 10 by eirage@chromium.org, Yesterday (40 hours ago)

Status: WontFix (was: Assigned)
(still keep this issue as won'tfix. Will open a new bug for adding the new factor)

Sign in to add a comment