Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e9c4e439f91b540db00407136c9b9b9c30959cb
https://github.com/WebKit/WebKit/commit/1e9c4e439f91b540db00407136c9b9b9c30959cb
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7-expected.txt
M Source/WebCore/animation/ViewTimeline.cpp
M Source/WebCore/animation/ViewTimeline.h
Log Message:
-----------
[scroll-animations] View timeline sticky adjustment wrong for subject taller
than the scrollport
https://bugs.webkit.org/show_bug.cgi?id=288913
rdar://146546693
Reviewed by Antoine Quint.
A view-timeline subject taller than the scrollport is simultaneously entering
and exiting while it covers the scrollport, but
computeSubjectStickinessLocation()
classified both anchors as DuringEntry (that check ran first), so
exitDistanceAdjustment() returned 0 and the contain/entry/exit-crossing ranges
were unadjusted for stickiness.
Add a WhileCovering location (checked before DuringEntry) that contributes to
both the entry and exit distance adjustments. Only an oversized subject can
satisfy it, so other cases are unaffected.
*
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7-expected.txt:
Progression
* Source/WebCore/animation/ViewTimeline.cpp:
(WebCore::StickinessAdjustmentData::computeStickinessAdjustmentData):
(WebCore::StickinessAdjustmentData::entryDistanceAdjustment const):
(WebCore::StickinessAdjustmentData::exitDistanceAdjustment const):
(WebCore::operator<<):
* Source/WebCore/animation/ViewTimeline.h:
Canonical link: https://commits.webkit.org/317348@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications