Page Gets scrolled automatically when i start type in a textarea which is inside the foreign object of svg
Reported by
ashokkum...@gmail.com,
Mar 17 2017
|
|||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 Steps to reproduce the problem: 1. Create a container div of size 2000px X 2000px 2. Create a svg of size in the 1000px X 1000px and append inside the div 3. create a foreign object which contains a textarea at the position of " x="960.99150848388672" y="46.62721633911133" width="40" height="30". When you start typing inside the textarea the page gets scrolled to the unanimous positions. What is the expected behavior? What went wrong? Scrolling of a page. Demo Link https://jsfiddle.net/w30mavjo/. Try to type some text and you will notice that the page gets scrolled to some random positions. Did this work before? Yes 56 Chrome version: 57.0.2987.110 Channel: stable OS Version: OS X 10.12.3 Flash Version: Shockwave Flash 25.0 r0 Demo link https://jsfiddle.net/w30mavjo/ Try to type text inside the textarea of the svg and you will notice that the page gets scrolled automatically inside the textarea.
,
Mar 20 2017
,
Mar 20 2017
Able to reproduce this issue on Windows-10, Mac OS 10.12 and Ubuntu 14.04 using chrome stable #57.0.2987.110. Bisect Information: --------------------- You are probably looking for a change made after 441468 (known good), but no later than 441469 (first known bad). Change Log URL: https://chromium.googlesource.com/chromium/src/+log/38c3c8c88851805c89a1953ee459c2350f7750f6..961e2d024412588edffbef5b3f6dfdfd2646761f From the above change log suspecting below change Review URL: https://codereview.chromium.org/2576963002 sunyunjia@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner. Thanks!
,
Mar 23 2017
Hi, Is there any alternative work arounds for this issue? @brajkumar
,
Mar 27 2017
I investigated the issue and found that this is not a regression bug. The cause is actually the absoluteToLocalQuad() in svg/foreignObject. When typing, PaintLayerScrollableArea::scrollIntoView() is called, and it calculates the local position of the TextArea by LayoutObject::absoluteToLocalQuad(). The returned x-coordinate should be something around 0, but we get something around 2000 instead, which seems to be twice of the foreignObject's offset. My guess is that there might be some redundant negation when calculating the absoluteToLocalQuad() in the svg element. pdr@ - Could you please look at the issue and assign it to the right owner? Thanks!
,
Mar 27 2017
,
Mar 27 2017
,
Mar 27 2017
Thanks for the investigation. Marking as available, but this is P1 and needs to be looked at. I can investigate later this week if needed.
,
Mar 28 2017
,
Apr 12 2017
Could this be related to (the same as) issue 704643 ? The description in comment 5 makes sound a bit like that? +wangxianzhu
,
Apr 14 2017
Does this still reproduce? If not, I'm sure it's the same as issue 704643 .
,
Apr 14 2017
The issue is not reproducible in the latest version of chrome.
,
Apr 28 2017
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by ashokkum...@gmail.com
, Mar 17 2017