Issue metadata
Sign in to add a comment
|
SVG ForeignObjects not taking transforms into account for mouse events
Reported by
ipwrigh...@gmail.com,
Dec 18
|
||||||||||||||||||||||||
Issue descriptionUserAgent: 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.
,
Dec 18
,
Dec 18
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.
,
Dec 18
,
Dec 18
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 |
|||||||||||||||||||||||||
Comment 1 by ipwrigh...@gmail.com
, Dec 18