Bug 161612

Summary: Programmatic scrolling on a scrollable body can leave parts of the page unviewable
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, fred.wang, rbuis, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 182230    
Bug Blocks: 5991    
Attachments:
Description Flags
Testcase
none
Testcase none

Description Simon Fraser (smfr) 2016-09-05 13:37:28 PDT
Created attachment 287981 [details]
Testcase

We're confused about programmatic scrolling on the body, when the body is independently scrollable (i.e. has overflow:scroll when the <html> has overflow:hidden).

In this case programmatic scrolling on the body can scroll the document, but the user can't scroll it back.
Comment 1 Frédéric Wang (:fredw) 2018-01-30 05:56:17 PST
(In reply to Simon Fraser (smfr) from comment #0)
> Created attachment 287981 [details]
> Testcase
> 
> We're confused about programmatic scrolling on the body, when the body is
> independently scrollable (i.e. has overflow:scroll when the <html> has
> overflow:hidden).
> 
> In this case programmatic scrolling on the body can scroll the document, but
> the user can't scroll it back.

The testcase does not work because the call to description() is not commented out.

It will be worth going back to this when bug 182230 is fixed, as the current patch seems to give better result.
Comment 2 Frédéric Wang (:fredw) 2018-09-05 06:55:04 PDT
Created attachment 348909 [details]
Testcase

Reduced version of the previous testcase.
Comment 3 Radar WebKit Bug Importer 2018-09-05 11:09:42 PDT
<rdar://problem/44145638>