Bug 181234 - In the grid, changing the text of the cell below resets the scroll position of the overflow cell above it
Summary: In the grid, changing the text of the cell below resets the scroll position o...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 11
Hardware: Macintosh macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-02 23:36 PST by Igor Afanasyev
Modified: 2018-01-02 23:47 PST (History)
3 users (show)

See Also:


Attachments
test case (572 bytes, text/html)
2018-01-02 23:36 PST, Igor Afanasyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Afanasyev 2018-01-02 23:36:31 PST
Created attachment 330367 [details]
test case

I can reproduce this issue both on Safari 11.0.2 and Chrome 63.0.3239.84 on Mac OS 10.12.6.

The minimal reproducible code is attached (index.html):

Steps to reproduce:
1) Open index.html.
2) Open Web inspector.
3) Drag the 'scroll me' scrollbar to the right so that 'scroll me' text disappears.
4) In the inspector, change 'edit me' to e.g. 'x'.

Expected: scrollbar retains its position.

Observed: scrollbar resets the position (scrolls back to the left).

Other notes: changing the height of the scrollable container seems to affect how much to the left the scrollbar is rewound.

This issue seems to be somewhat related to https://bugs.webkit.org/show_bug.cgi?id=176458
Comment 1 Igor Afanasyev 2018-01-02 23:47:20 PST
Another observation: resizing the browser window horizontally with the same test case code will also reset the horizontal scrollbar position.