Bug 1827892 [wpt PR 39522] - [scroll-animations] Implement deferred timeline attachme...
commit0b0b2140965671d618caa14e12621b7788844454
authorAnders Hartvoll Ruud <andruud@chromium.org>
Mon, 17 Apr 2023 13:44:25 +0000 (17 13:44 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 18 Apr 2023 09:10:34 +0000 (18 09:10 +0000)
tree85f553091a73300ddf2696c8b9c4261ffa13f974
parentef24069e14342e63c46fd35dfeb0bddd37d1b399
Bug 1827892 [wpt PR 39522] - [scroll-animations] Implement deferred timeline attachment, a=testonly

Automatic update from web-platform-tests
[scroll-animations] Implement deferred timeline attachment

This CL implements the behavior behind the *-timeline-attachment
properties.

During CSSAnimations::CalculateTimelineUpdate, we now also calculate
the "attaching timelines", which means the deferred timelines in the
ancestor chain which correspond to the current element's timelines
with attachment=ancestor.

As usual, the pending changes to the "attaching timelines" are stored
on CSSAnimationUpdate, and only applied when (or if) CSSAnimations::
MaybeApplyPendingUpdate is called.

A couple of things are deferred to later CLs:

 - The behavior of ancestor-attached timelines with nothing to
   attach to. This is not clear yet.
 - Ensuring a sufficiently severe style recalc of children
   when the computed value of *-timeline-attachment property changes.

Bug: 1425939
Change-Id: I69ebc95c3936cb7276721d35b690e582188d9a9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4422650
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130110}

--

wpt-commits: 0bfffd48d12890b02caf178965a0f9b40567992b
wpt-pr: 39522
testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment.html [new file with mode: 0644]
testing/web-platform/tests/scroll-animations/css/view-timeline-attachment.html [new file with mode: 0644]