NEW322849
Transitioned CSS filter on an ancestor cancels in-progress touch scrolling on iOS
https://bugs.webkit.org/show_bug.cgi?id=322849
Summary Transitioned CSS filter on an ancestor cancels in-progress touch scrolling on...
esatturan206
Reported 2026-08-28 08:41:29 PDT
A CSS filter applied on :active and transitioned, set on an ANCESTOR of a scrollable element, causes iOS Safari to abandon a touch scroll that has already begun. Most drags inside the scroller produce no scroll events at all. Reduced test case (static HTML, no framework): https://readkinetic.com/repro/safari-filter-scroll.html The whole of it is two rules: .host { transition: filter 150ms ease-out; } .host:active { filter: brightness(0.95); } where .host is the parent of the scrolling div. Steps to reproduce: 1. Open the URL on an iPhone running iOS 26.6. 2. Drag vertically inside the bordered box. The checkbox is ticked by default, so the filter rule is active. 3. Observe that most gestures scroll nothing. The page counts gestures that produced no scroll event. 4. Untick "filter on ancestor" and repeat the same drags. Expected: the filter changes appearance only; scrolling is unaffected. Actual: with the filter rule active, drags are frequently ignored. On my iPhone 16 Pro (iOS 26.6) I needed up to 25 consecutive drags before one scrolled. With the rule off, every drag scrolled. Notes: - The page around the scroller scrolls normally throughout. Only the inner scrollable element is affected. - Not reproducible in Chrome on Android, or in Safari or Chrome on macOS. - Removing either the transition or the filter avoids it.
Attachments
Simon Fraser (smfr)
Comment 1 2026-08-28 09:28:24 PDT
I believe this happens when we remove and re-add a UIScrollView to the view hierarchy as ancestor layers change.
Radar WebKit Bug Importer
Comment 2 2026-09-04 08:42:19 PDT
esatturan206
Comment 3 2026-09-04 13:47:22 PDT
Some numbers, measured on iPhone 16 Pro / iOS 26.6, fifty gestures per mode, using an updated version of the reduced test case: https://www.readkinetic.com/repro/safari-filter-scroll.html 1. no filter on the ancestor (control): 0 of 50 gestures failed 2. filter on :active (as originally reported): 49 of 50 failed 3. filter re-set on every touchmove: 47 of 50 failed "Failed" means the gesture scrolled zero pixels. The page now measures pixels actually travelled rather than scroll events fired, since an event that moves nothing is precisely the failure, and it scores itself so there is no judgement call involved. The control mode has its own verdict, so a device that fails with no filter present reports that rather than being counted as this bug. I added the third mode on the theory that re-setting the filter throughout the gesture would remove the timing question and make it fail every time. It did not — 47 and 49 out of 50 are the same result — so that theory is wrong, and how much of the gesture the filter change overlaps does not appear to be what decides the outcome. Reporting it in case the null result is useful to you. What is solid is the contrast: fifty consecutive clean gestures with no filter on the ancestor, and around ninety-five per cent failure with one. Happy to run any variation that would help — a transform instead of a filter, opacity, a different ancestor depth, or the same thing without the transition.
Note You need to log in before you can comment on or make changes to this bug.