Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6819cd6b87a62c56a0f1ead43d286515aae65602
https://github.com/WebKit/WebKit/commit/6819cd6b87a62c56a0f1ead43d286515aae65602
Author: Antoine Quint <[email protected]>
Date: 2026-07-17 (Fri, 17 Jul 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/view-timeline-lookup-expected.txt
M Source/WebCore/animation/StyleOriginatedTimelinesController.cpp
M Source/WebCore/animation/StyleOriginatedTimelinesController.h
Log Message:
-----------
[scroll-animations] only match `animation-timeline` to a timeline within the
nearest `timeline-scope` element for that name
https://bugs.webkit.org/show_bug.cgi?id=319589
rdar://182417407
Reviewed by Cameron McCormack.
Only the nearest parent with a `timeline-scope` [0] value matching the
`animation-timeline`
should be considered as establishing a valid scope [1]. As such, we look for
such an element
in `StyleOriginatedTimelinesController::attachAnimation()` and pass it down to
`determineTimelineForElement()`
and `determineTreeOrder()` to determine what the matching timeline, if any, is.
[0] https://drafts.csswg.org/scroll-animations-1/#timeline-scope
[1] https://drafts.csswg.org/scroll-animations-1/#timeline-scoping
*
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/view-timeline-lookup-expected.txt:
* Source/WebCore/animation/StyleOriginatedTimelinesController.cpp:
(WebCore::StyleOriginatedTimelinesController::determineTreeOrder):
(WebCore::StyleOriginatedTimelinesController::determineTimelineForElement):
(WebCore::StyleOriginatedTimelinesController::attachAnimation):
(WebCore::containsElement): Deleted.
* Source/WebCore/animation/StyleOriginatedTimelinesController.h:
Canonical link: https://commits.webkit.org/317376@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications