Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7dc5e35fab8ba1567abe5e5611b35accad2dc096
https://github.com/WebKit/WebKit/commit/7dc5e35fab8ba1567abe5e5611b35accad2dc096
Author: Simon Fraser <[email protected]>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M Source/WebCore/page/Quirks.cpp
M Source/WebCore/page/QuirksData.h
Log Message:
-----------
[Scroll anchoring] Scroll jumping on apple.com/retail
https://bugs.webkit.org/show_bug.cgi?id=319308
rdar://181007316
Reviewed by Abrar Rahman Protyasha.
Scroll anchoring on apple.com/retail causes jumpy scrolling near the top of the
page.
The React-based content changes an element from `position: static` to
`position: fixed`
which correctly suppresses anchoring, but in a subsequent update changes
`padding`, which
triggers anchoring. This anchoring happens via WebKit's zero-delay layout
timer, so escapes
the earlier suppression; other browsers see both as happening in the same
suppression window,
although the behavior is poorly specified and browser behavior differs[1], as
shown by a
new tentative WPT[2].
Because of differences between browsers, and real fix (removing the zero-delay
layout
timer) being a very risky change, for now quirk scroll anchoring off for
apple.com/retail
(and the equivalent sites like apple.com.cn/retail and apple.com/uk/retail).
[1] https://github.com/w3c/csswg-drafts/issues/14177
[2] https://github.com/web-platform-tests/wpt/pull/61263
* Source/WebCore/page/Quirks.cpp:
* Source/WebCore/page/QuirksData.h:
Canonical link: https://commits.webkit.org/317169@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications