mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -131,6 +131,14 @@ promise_test(async t => {
|
|||
}, 'After replacing a finished animation\'s effect with a longer one ' +
|
||||
'it fires an animationstart event');
|
||||
|
||||
test(t => {
|
||||
const div = addDiv(t);
|
||||
div.style.animation = 'anim 100s';
|
||||
div.style.animationComposition = 'add';
|
||||
const animation = div.getAnimations()[0];
|
||||
assert_equals(animation.effect.composite, 'add');
|
||||
}, 'Setting animation-composition sets the composite property on the effect');
|
||||
|
||||
test(t => {
|
||||
const div = addDiv(t);
|
||||
|
||||
|
@ -161,6 +169,7 @@ test(t => {
|
|||
div.style.animationDelay = '8s';
|
||||
div.style.animationFillMode = 'both';
|
||||
div.style.animationPlayState = 'paused';
|
||||
div.style.animationComposition = 'add';
|
||||
|
||||
// Update the keyframes
|
||||
keyframesRule.deleteRule(0);
|
||||
|
@ -197,6 +206,11 @@ test(t => {
|
|||
'200px',
|
||||
'keyframes should be the value set by the API'
|
||||
);
|
||||
assert_equals(
|
||||
animation.effect.composite,
|
||||
'replace',
|
||||
'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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue