ladybird/Tests/LibWeb/Ref/css-keyframe-fill-forwards.html
Matthew Olsson e6aef49ef3 LibWeb: Consider fill state before calling Animation::play()
Animation::play_state() does not consider the fill state, and thus will
not return "Playing" for a fill-forward animation in the after phase.
It is still valid for paused, as pausing is not affected by the fill
mode.
2024-03-06 07:45:56 +01:00

21 lines
474 B
HTML

<!doctype html>
<link rel="match" href="reference/css-keyframe-fill-forwards-ref.html" />
<style>
#foo {
width: 100px;
height: 100px;
animation: anim 1s linear forwards;
}
@keyframes anim {
from {
background-color: red;
}
to {
background-color: blue;
}
}
</style>
<div id="foo"></div>
<script>
document.getElementById("foo").getAnimations()[0].currentTime = 1500;
</script>