mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
41 lines
812 B
HTML
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>
|