1
0
Fork 0
firefox/testing/web-platform/tests/css/css-animations/display-via-custom-prop-animation-crash.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

30 lines
583 B
HTML

<!DOCTYPE html>
<html class="test-wait">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1941651">
<style>
:root {
--disp: block;
}
@keyframes switch {
0% { --disp: none; }
100% { --disp: block; }
}
#target {
height: 100px;
width: 100px;
background-color: green;
animation: switch 0.5s;
display: var(--disp);
}
</style>
<div id="target">
<div></div>
</div>
<script>
target.addEventListener("animationend", function() {
document.documentElement.classList = "";
})
target.getBoundingClientRect();
</script>