mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Implement history.scrollRestoration
This commit is contained in:
parent
5a35ee08d3
commit
2106617f5b
Notes:
github-actions[bot]
2024-10-02 23:09:11 +00:00
Author: https://github.com/gmta
Commit: 2106617f5b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1595
Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 59 additions and 1 deletions
12
Tests/LibWeb/Text/input/HTML/History-scrollRestoration.html
Normal file
12
Tests/LibWeb/Text/input/HTML/History-scrollRestoration.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue