assert_equals(getComputedStyle(div).marginLeft, '100px', 'The initial margin-left value should be the base value');
}, 'Initial margin-left value for an animation with no keyframe at offset 0');
assert_equals(getComputedStyle(div).marginLeft, '200px', 'The initial margin-left value should be the initial value ' + 'of lower-priority animation');
}, 'Initial margin-left value for an animation with no keyframe at offset 0 ' + 'is that of lower-priority animations');
assert_equals(getComputedStyle(div).marginLeft, '150px', 'The initial margin-left value should be the initial value ' + 'of the transition');
}, 'Initial margin-left value for an animation with no keyframe at offset 0 ' + 'is that of transition');
animation.currentTime = 50 * MS_PER_SEC;
assert_equals(getComputedStyle(div).marginLeft, '150px', 'The margin-left value at 50% should be the base value');
}, 'margin-left value at 50% for an animation with no keyframe at offset 1');
lowerAnimation.currentTime = 50 * MS_PER_SEC;
higherAnimation.currentTime = 50 * MS_PER_SEC;
// (250px + 400px) * 0.5
assert_equals(getComputedStyle(div).marginLeft, '325px', 'The margin-left value at 50% should be additive value of ' + 'lower-priority animation and higher-priority animation');
}, 'margin-left value at 50% for an animation with no keyframe at offset 1 ' + 'is that of lower-priority animations');
div.getAnimations().forEach(animation => {
animation.currentTime = 50 * MS_PER_SEC;
});
// (200px + 200px) * 0.5
assert_equals(getComputedStyle(div).marginLeft, '200px', 'The margin-left value at 50% should be additive value of ' + 'the transition and animation');
}, 'margin-left value at 50% for an animation with no keyframe at offset 1 ' + 'is that of transition');
assert_equals(getComputedStyle(div).marginLeft, '300px', 'The margin-left value should be additive value of the ' + 'accumulation of the initial value onto the base value ');
}, 'margin-left value for an animation with no keyframe at offset 1 and its ' + 'iterationComposite is accumulate');
</script>
</body>
Messung V0.5
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.