1
0
Fork 0
firefox/layout/reftests/css-animations/in-visibility-hidden-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

36 lines
692 B
HTML

<!DOCTYPE HTML>
<html class="reftest-wait">
<title>in visibility hidden color animation</title>
<style>
@keyframes color {
0% { color: black }
1% { color: blue }
100% { color: blue }
}
p {
visibility: visible;
}
div {
color: black;
animation: color 0.1s 1 forwards;
visibility: hidden;
}
</style>
<div id="parent"><p>color animation on visible element in invisible parent element</p></div>
<script>
document.getElementById("parent").addEventListener("animationend", AnimationEndListener);
function AnimationEndListener(event) {
setTimeout(RemoveReftestWait, 0);
}
function RemoveReftestWait() {
document.documentElement.classList.remove("reftest-wait");
}
</script>