SDA WPTs batch4: switch view-timeline tests to deferred attachment
We have spec consensus on replacing previous-sibling lookup in
animation-timeline with deferred-timeline-attachment. This CL updates
the following WPTs accordingly:
timeline-offset-in-keyframe-change-timeline.tentative.html
Bug: 1432627
Change-Id: I6e5dcfd4fdc7f02de16fd37e3e6d6128d4bb121d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4482736
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1137149}
diff --git a/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html b/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html
index 5ac5408..eeb1315 100644
--- a/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html
+++ b/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html
@@ -27,15 +27,16 @@
overflow-x: hidden;
width: 300px;
height: 200px;
+ view-timeline: sibling defer;
}
- #block {
+ #sibling {
margin-top: 800px;
margin-left: 10px;
margin-right: 10px;
width: 100px;
height: 50px;
background-color: blue;
- view-timeline: block block;
+ view-timeline: sibling block ancestor;
}
#target {
margin-bottom: 800px;
@@ -56,12 +57,12 @@
animation-timeline: target;
}
#target.with-view-timeline.retarget {
- animation-timeline: block;
+ animation-timeline: sibling;
}
</style>
<body>
<div id="scroller">
- <div id="block"></div>
+ <div id="sibling"></div>
<div id="target"></div>
</div>
</body>
@@ -109,7 +110,7 @@
assert_frame_lists_equal(frames, expected);
target.classList.add('retarget');
- assert_equals(getComputedStyle(target).animationTimeline, 'block',
+ assert_equals(getComputedStyle(target).animationTimeline, 'sibling',
'Switch to another view timeline');
await waitForNextFrame();
frames = anim.effect.getKeyframes();