Bug 161612 - Programmatic scrolling on a scrollable body can leave parts of the page unviewable
Summary: Programmatic scrolling on a scrollable body can leave parts of the page unvie...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 182230
Blocks: 5991
  Show dependency treegraph
 
Reported: 2016-09-05 13:37 PDT by Simon Fraser (smfr)
Modified: 2018-09-05 11:09 PDT (History)
5 users (show)

See Also:


Attachments
Testcase (2.26 KB, text/html)
2016-09-05 13:37 PDT, Simon Fraser (smfr)
no flags Details
Testcase (770 bytes, text/html)
2018-09-05 06:55 PDT, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>