mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
e6aef49ef3
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.
21 lines
474 B
HTML
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>
|