Bug 181234

Summary: In the grid, changing the text of the cell below resets the scroll position of the overflow cell above it
Product: WebKit Reporter: Igor Afanasyev <igor.afanasyev>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, zalan
Priority: P2    
Version: Safari 11   
Hardware: Mac   
OS: macOS 10.12   
Attachments:
Description Flags
test case none

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.