Files
ladybird/Tests/LibWeb/Text/input/css/multiple-animations.html
Callum Law 84762021b8 LibWeb: Support triggering multiple animations per animation property
We also now use the computed (rather than cascaded) values when
triggering animations.
2025-10-27 09:48:25 +00:00

41 lines
812 B
HTML

<!DOCTYPE html>
<html>
<style>
@keyframes foo {
from {
top: 0px;
}
to {
top: 10px;
}
}
@keyframes bar {
from {
left: 0px;
}
to {
left: 10px;
}
}
#baz {
animation: foo 1s, bar 2s;
}
</style>
<body>
<div id="baz"></div>
<script src="../include.js"></script>
<script>
test(() => {
for (const animation of document.getAnimations()) {
println(animation.animationName);
println(animation.effect.getTiming().duration);
}
});
</script>
</body>
</html>