Bug 199779

Summary: Don't do async overflow scrolling for visibility:hidden scrollers
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: ScrollingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch dino: review+

Simon Fraser (smfr)
Reported 2019-07-13 12:04:27 PDT
If a scroller has visibility:hidden, don't trigger the async overflow scroll code path. Some JS libraries make visibility:hidden scrollers (https://github.com/wnr/element-resize-detector) and we need to avoid the compositing cost. I filed https://github.com/w3c/csswg-drafts/issues/4113 on this not being well-defined in CSS, and expect that to be resolved in a way that prevents scrolling.
Attachments
Patch (8.02 KB, patch)
2019-07-13 13:46 PDT, Simon Fraser (smfr)
dino: review+
Radar WebKit Bug Importer
Comment 1 2019-07-13 12:05:11 PDT
Simon Fraser (smfr)
Comment 2 2019-07-13 13:46:03 PDT
Simon Fraser (smfr)
Comment 3 2019-07-13 15:34:57 PDT
Note You need to log in before you can comment on or make changes to this bug.