1
0
Fork 0
firefox/layout/reftests/display-list/retained-dl-style-change-with-prerender-transform-1.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
655 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>
.wrapper {
width: 810vw;
transform: translateX(-50%);
height: 90vh;
}
.slides {
will-change: transform;
}
.button {
background-color: red;
position: absolute;
left: 50%;
}
</style>
<div class="wrapper">
<div class="slides">
<span class="button">Add to cart</span>
</div>
</div>
<script>
document.addEventListener("MozReftestInvalidate", () => {
document.querySelector(".button").style.backgroundColor = "green";
document.documentElement.classList.remove("reftest-wait");
}, { once: true });
</script>
</html>