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: HTML DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 182230
Blocks: 5991
  Show dependency treegraph
 
Reported: 2016-09-05 13:37 PDT by Simon Fraser (smfr)
Modified: 2018-01-30 05:56 PST (History)
3 users (show)

See Also:


Attachments
Testcase (2.26 KB, text/html)
2016-09-05 13:37 PDT, Simon Fraser (smfr)
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.