[wpt-sync] Sync PR 65005 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330304
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65005 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65005
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330304
WebKit export from bug: Scroll driven animation snaps to the wrong timeline
<pre>
Scroll-driven animation snaps to the wrong timelineThis patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
A style-originated timeline keeps track of a single element: either the element that
declares it, or the nearest ancestor whose timeline-scope hoists its name. Once a timeline
was hoisted, name lookup treated it as declared only on that ancestor. As a result, it was
no longer found on the element that declares it.For example, given:
.outer { timeline-scope: --t; scroll-timeline: --t; } .inner { timeline-scope: --t; scroll-timeline: --t; } .target { animation-timeline: --t; } .ghost { view-timeline: --t; }.inner's scroll timeline was hoisted to .outer, and .ghost's view timeline was hoisted to
.inner. When resolving .target, the only match at .inner was .ghost's view timeline. The
correct match is .inner's own scroll timeline, since per spec a named timeline can always
be referenced by its declaring element and that element's descendants.Separately, attachAnimation() ignored any timeline hoisted to a timeline-scope element
other than the target's nearest one. When .inner's scroll timeline was the only candidate,
the animation ended up on an inactive timeline.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330304">https://bugs.webkit.org/show_bug.cgi?id=330304</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/326297@main">https://commits.webkit.org/326297@main</a>
</pre>
| Assignee | ||
Updated•12 days ago
|
| Assignee | ||
Comment 1•12 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122249
| Assignee | ||
Comment 2•11 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 2 subtests
Status Summary
Firefox
OK : 1
PASS: 2
Chrome
OK : 1
PASS: 2
Safari
OK : 1
FAIL: 2
Links
Comment 4•9 days ago
|
||
| bugherder | ||
Description
•