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

Issue 702550 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 704643
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug



Sign in to add a comment

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 description

UserAgent: 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.
 
I have update the js fiddle with some changes https://jsfiddle.net/w30mavjo/1/ please look into this
Labels: Needs-Bisect Needs-Triage-M57
Cc: brajkumar@chromium.org
Components: -Blink Blink>Scroll
Labels: -Pri-2 -Needs-Bisect -Needs-Triage-M57 hasbisect-per-revision M-57 OS-Linux OS-Windows Pri-1
Owner: sunyunjia@chromium.org
Status: Assigned (was: Unconfirmed)
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!
Hi, 
Is there any alternative work arounds for this issue? @brajkumar
Cc: pdr@chromium.org
Labels: -Type-Bug-Regression Type-Bug
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!
Owner: ----
Components: -Blink>Scroll Blink>SVG Blink>Layout

Comment 8 by pdr@chromium.org, Mar 27 2017

Components: -Blink>Layout
Status: Available (was: Assigned)
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.
Cc: sunyunjia@chromium.org

Comment 10 by f...@opera.com, Apr 12 2017

Cc: wangxianzhu@chromium.org
Could this be related to (the same as)  issue 704643 ? The description in comment 5 makes sound a bit like that?

+wangxianzhu
Does this still reproduce? If not, I'm sure it's the same as  issue 704643 .
The issue is not reproducible in the latest version of chrome.
Mergedinto: 704643
Status: Duplicate (was: Available)
Fixed, based on the comments.

Sign in to add a comment