New issue
Advanced search Search tips

Issue 916158 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 908570
Owner:
Closed: Dec 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

SVG ForeignObjects not taking transforms into account for mouse events

Reported by ipwrigh...@gmail.com, Dec 18

Issue description

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

Steps to reproduce the problem:
1. Create an SVG Element
2. Add a ForeignObject within it
3. Apply a translation transform to the ForeignObject
4. Hook up a mousedown event to the ForeignObject

Or see the one I made earlier....

See https://jsfiddle.net/IPWright83/msk8q2ve/ for a reproduction illustrating a broken example (using transform) and a working example (using x,y positions).

Clicking the yellow circle in both examples should log yellow messages to the console. But on the top (Broken) example it's not respecting the transform.

What is the expected behavior?
Mousedown events fire when the mouse button is pressed over the foreign object

What went wrong?
Mousedown events occur in the untranslated space of the foreign object, despite the object rendering correctly.

Did this work before? N/A 

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version: 

This issue was introduced in Chrome 71. Running Chrome 70.0.3838.110 does not present this issue.
 
Missed the "Did this work before" field. Yes it worked in v70 of Chrome.
Labels: Needs-Bisect Needs-Triage-M71
Cc: pbomm...@chromium.org chrishtr@chromium.org gov...@chromium.org
Components: -Blink Blink>Paint
Labels: -Type-Bug -Pri-2 RegressedIn-71 ReleaseBlock-Stable OS-Android OS-Chrome OS-Linux OS-Mac Pri-1 Type-Bug-Regression
Owner: wangxianzhu@chromium.org
Status: Assigned (was: Unconfirmed)
You are probably looking for a change made after 592260 (known good), but no later than 592261 (first known bad).
CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.
  https://chromium.googlesource.com/chromium/src/+log/c341db6c8ccdd6c77c0d61f6379272bb6046ebe5..29f57056b2ce47b0a0a46e460cb74b36e92fb129

Note : On Chrome Beta(M72), Dev(M73) and Canary(M73) channels I don't see the yellow circle.
Labels: Target-72 M-72
Mergedinto: 908570
Status: Duplicate (was: Assigned)
The bug has been fixed in trunk and M72 in  bug 908570 .

(The test needs to be modified a little to work on M72 by adding the following style:
  foreignObject { overflow: visible; }.
foreignObject had incorrect overflow:visible by default before r601116 so the yellow circle was visible.)

Sign in to add a comment