[Webkit-unassigned] [Bug 227246] REGRESSION (r271439): JS-Smooth scrolling with snap points broken on Apple Music pages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 22 00:16:10 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=227246

--- Comment #5 from Martin Robinson <mrobinson at webkit.org> ---
(In reply to Simon Fraser (smfr) from comment #4)
> The testcase works in Chrome and Firefox, so do they not snap for
> programmatic scrolls?

Chrome and Firefox definitely do snapping for programmatic scroll events.

I'm not sure about the Apple Music page, but in the test case the `scroll-snap-type: y mandatory;` rule is applied to the body tag. Normally the body tag doesn't accept `scroll-snap-type` rules, but WebKit maintains it for backwards compatibility with an old version of the specification. This means that scroll snapping is not enabled for Chrome and Firefox, but is for WebKit browsers. If you move the rule to the html tag, then the animation is broken in different ways in Chrome and Firefox.

Removing this backward compatibility feature is tracked by: https://bugs.webkit.org/show_bug.cgi?id=200643.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210622/e0b4f5ff/attachment.htm>


More information about the webkit-unassigned mailing list