1
0
Fork 0
firefox/testing/web-platform/tests/css/css-view-transitions/new-content-transform-position-fixed-ref.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

26 lines
724 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>View transitions: computed transform for position fixed elements doesn't include scroll pos (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<style>
.box {
background: lightblue;
width: 100px;
height: 100px;
position: fixed;
}
body { background: lightpink; }
</style>
<div class=box></div>
<div style="height: 1000px;"></div>
<script>
addEventListener("scroll", () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.classList.remove("reftest-wait");
});
});
}, { once: true, capture: true });
document.documentElement.scrollTop = 500;
</script>
</html>