1
0
Fork 0
firefox/testing/web-platform/tests/css/css-anchor-position/chrome-379758203-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

31 lines
802 B
HTML

<!DOCTYPE html>
<html class="test-wait">
<link rel="help" href="https://crbug.com/379758203">
<style>
.spacer { height: 2000px; }
.anchor { anchor-name: --a; }
#popover {
transition: bottom 1s allow-discrete;
position-anchor: --a;
position-try-fallbacks: flip-block;
top: anchor(bottom);
bottom: auto;
}
</style>
<div class="spacer"></div>
<div class="anchor">
<div id="popover" popover>Hello World</div>
</div>
<div class="spacer"></div>
<script>
requestAnimationFrame(() => {
document.documentElement.scrollTop = 2000;
requestAnimationFrame(() => {
popover.showPopover();
requestAnimationFrame(() => {
document.documentElement.scrollTop = 0;
document.documentElement.classList.remove("test-wait");
});
});
});
</script>