LibWeb: Implement history.scrollRestoration

This commit is contained in:
Jelle Raaijmakers 2024-10-02 10:33:05 +02:00 committed by Andrew Kaster
commit 2106617f5b
Notes: github-actions[bot] 2024-10-02 23:09:11 +00:00
5 changed files with 59 additions and 1 deletions

View file

@ -0,0 +1,12 @@
<script src="../include.js"></script>
<script>
test(() => {
println(history.scrollRestoration);
history.scrollRestoration = 'bad value';
println(history.scrollRestoration);
history.scrollRestoration = 'manual';
println(history.scrollRestoration);
history.scrollRestoration = 'auto';
println(history.scrollRestoration);
});
</script>