mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
Tests: Synchronize imported tests with the WPT repository
This commit is contained in:
committed by
Alexander Kalenik
parent
11e5cd5048
commit
689dff3ee8
Notes:
github-actions[bot]
2025-06-22 21:52:43 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/689dff3ee85 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5160
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user