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.
<rdar://problem/53056654>
Created attachment 374081 [details] Patch
https://trac.webkit.org/changeset/247420/webkit