1
0
Fork 0
firefox/layout/reftests/css-animations/partially-out-of-view-animation.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

35 lines
726 B
HTML

<!DOCTYPE HTML>
<html class="reftest-wait">
<title>Animation on element which is partially out of the view</title>
<style>
@keyframes background-color {
0% { background-color: black }
1% { background-color: blue }
100% { background-color: blue }
}
div {
position: absolute;
width: 200px;
height: 200px;
background-color: black;
animation: background-color 0.1s 1 forwards;
top: -100px;
}
</style>
<div id="target"></div>
<script>
document.getElementById("target").addEventListener("animationend", AnimationEndListener);
function AnimationEndListener(event) {
setTimeout(RemoveReftestWait, 0);
}
function RemoveReftestWait() {
document.documentElement.classList.remove("reftest-wait");
}
</script>