1
0
Fork 0
firefox/layout/reftests/display-list/retained-dl-animation-on-pseudo.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

41 lines
686 B
HTML

<html class="reftest-wait">
<head>
<style>
body {
margin: 0px;
}
#child {
width:100px;
height:100px;
background-color: green;
display: inline-block;
}
#parent::before {
content: '';
width: 100px;
height: 100px;
display: inline-block;
}
@keyframes anim {
from, to { background-color: blue; }
}
.anim::before {
animation: anim 100s infinite;
}
</style>
</head>
<body>
<div id="parent">
<div id="child" class="reftest-no-display-list"></div>
</div>
</body>
<script>
window.addEventListener("MozReftestInvalidate", () => {
document.getElementById("parent").classList.add("anim");
document.documentElement.removeAttribute("class");
});
</script>
</html>