WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156435
composited scrolling interferes with the propagation of perspective
https://bugs.webkit.org/show_bug.cgi?id=156435
Summary
composited scrolling interferes with the propagation of perspective
vollick
Reported
2016-04-09 09:05:52 PDT
Try visiting
https://output.jsbin.com/muqaqejafi
Clicking the button toggles -webkit-overflow-scrolling : touch/auto. When touch is selected, perspective from the scroller is not applied to the background as per my understanding of the TR transform spec and parallax fails. This appears to be the source of some pain in the wild (
https://css-tricks.com/forums/topic/parallax-scrolling-that-actually-works-on-ipad/
). I'm not aware of a way to get both fling and parallax on an overflow scroller on iOS without resorting to JS (is there a way?). Unrelated: it is difficult to click the button on iOS without being scrolled to the top. Could the scrolled content be interfering with hit testing, despite the scroll clip?
Attachments
Patch
(12.24 KB, patch)
2020-05-13 11:14 PDT
,
Simon Fraser (smfr)
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-04-09 11:03:23 PDT
<
rdar://problem/25642222
>
Jayden Seric
Comment 2
2019-10-29 18:08:58 PDT
Related:
https://bugs.webkit.org/show_bug.cgi?id=164949
Simon Fraser (smfr)
Comment 3
2019-10-29 18:25:27 PDT
***
Bug 164949
has been marked as a duplicate of this bug. ***
Simon Fraser (smfr)
Comment 4
2020-05-13 11:04:42 PDT
***
Bug 211851
has been marked as a duplicate of this bug. ***
Simon Fraser (smfr)
Comment 5
2020-05-13 11:14:49 PDT
Created
attachment 399281
[details]
Patch
Antti Koivisto
Comment 6
2020-05-13 11:21:43 PDT
Comment on
attachment 399281
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=399281&action=review
> Source/WebCore/rendering/RenderLayerBacking.cpp:691 > + auto layerForChildrenTransform = [&]() {
Unnecessary ()
> Source/WebCore/rendering/RenderLayerBacking.cpp:706 > + perspectiveRelativeBox = borderBoxRect; > + return m_graphicsLayer.get(); > + }; > + > + auto* layerForPerspective = layerForChildrenTransform();
If you wanted to be fancy you could return both perspectiveRelativeBox and layer together with something like return std::make_tuple(m_graphicsLayer.get(), borderBoxRect); } auto [layerForPerspective, perspectiveRelativeBox] = layerForChildrenTransform()
Simon Fraser (smfr)
Comment 7
2020-05-13 12:01:26 PDT
https://trac.webkit.org/changeset/261632/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug