Tests: Synchronize imported tests with the WPT repository

This commit is contained in:
Tim Ledbetter
2025-06-21 15:43:33 +01:00
committed by Alexander Kalenik
parent 11e5cd5048
commit 689dff3ee8
Notes: github-actions[bot] 2025-06-22 21:52:43 +00:00
155 changed files with 1485 additions and 750 deletions

View File

@@ -170,6 +170,7 @@ test(t => {
div.style.animationFillMode = 'both';
div.style.animationPlayState = 'paused';
div.style.animationComposition = 'add';
div.style.animationTimeline = 'none';
// Update the keyframes
keyframesRule.deleteRule(0);
@@ -212,13 +213,18 @@ test(t => {
'composite should be the value set by the API'
);
// Unlike the other properties animation-play-state maps to the Animation
// not the KeyframeEffect so it should be overridden.
// Unlike the other properties animation-play-state and animation-timeline map
// to the Animation, not the KeyframeEffect, so they should be overridden.
assert_equals(
animation.playState,
'paused',
'play state should be the value set by style'
);
assert_equals(
animation.timeline,
null,
'timeline should be the value set by style'
);
}, 'Replacing the effect of a CSSAnimation causes subsequent changes to'
+ ' corresponding animation-* properties to be ignored');