New issue
Advanced search Search tips

Issue 748140 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 740417
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Type in an "offscreen" input in position:sticky container will cause the page to scroll to the origin position

Project Member Reported by yigu@chromium.org, Jul 24 2017

Issue description

 Issue 740417  fixed the bug that typing in an sticky positioned input box could incorrectly scroll the page. If the input box is onscreen, typing in it doesn't scroll the page now.

However, if the sticky input box is offscreen (e.g., its container is offscreen), typing in the box should scroll the page to reveal the input box. With the fix of  issue 740417 , Chrome now scrolls the page to the origin position of the sticky element while Firefox and Safari scroll the page to the last stuck position of the sticky element which is correct.

See http://jsbin.com/fufeco/ for example. 
 

Comment 1 by yigu@chromium.org, Jul 25 2017

Cc: flackr@chromium.org smcgruer@chromium.org
Correction: Safari behaves the same as Chrome.

According to the spec [1], the default scroll option of scrollIntoView is "center". In the update example where we can center the input box (http://jsbin.com/jijesizavo/), the behavior of scrolling the page to the last stuck position may not be correct. 
Any thoughts?

[1] https://www.w3.org/TR/cssom-view-1/#dictdef-scrollintoviewoptions

Comment 2 by yigu@chromium.org, Jul 25 2017

Mergedinto: 740417
Status: Duplicate (was: Started)
This was actually fixed by  issue 740417 .

Sign in to add a comment