New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 862206 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 467484
Owner: ----
Closed: Aug 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Display scaling of img elements in SVG foreignObjects wrong during CSS transitions

Reported by zbbjorn...@gmail.com, Jul 10

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Steps to reproduce the problem:
http://jsfiddle.net/nr3c14xm/31/

What is the expected behavior?

What went wrong?
This fiddle causes the rendering shown in the attached GIF, where the image is shrunken during the CSS transition.

This happens with and without hardware acceleration enabled. (Note that adding `translateZ(0)` causes the image to always be shrunken.)

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.99  Channel: stable
OS Version: 10.0
Flash Version:
 
bug.gif
460 KB View Download
Forgot to say: this only happens on Windows, and it only happens on high-DPI displays. (I'm currently set to 175% scaling.)
Sorry to spam. Colleague reproduced this on a non-high-DPI display, on Linux, by zooming Chrome.
Labels: Needs-Triage-M67
Labels: Triaged-ET M-69 FoundIn-69 Target-69 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 14.04 using chrome reported version #67.0.3396.99 and latest canary #69.0.3488.0.
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Components: -Blink>Layout Blink>Paint
Cc: chrishtr@chromium.org pdr@chromium.org trchen@chromium.org
Status: Available (was: Untriaged)
Something is wrong with the zoom factor when the image moves to be composited inside the foreign object. Maybe we can fix this now given the stacking context changes?

Also, since we're getting closer to making SVGForeignObject genuinely useful, it seems like we might want a push to fix these issues.
Isn't this just another instance of issue 467484? (During the transition, the <img> becomes a layer, and thus loses the effective zoom that the <svg> root applies. Probably related to the effective-zoom-resetting magic that happens for fO during style resolve - I suspect that needs to go.)
Sorry, make that  issue 655983  (not issue 467484 - although they are likely fairly similar I'd suspect.) (https://bugs.chromium.org/p/chromium/issues/detail?id=738022#c13 points out the effective-zoom-resetting magic BTW.)
Mergedinto: 467484
Status: Duplicate (was: Available)

Sign in to add a comment