1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibWeb: Stub out Element.scroll() and Element.scrollTo()

With this, we stop throwing exceptions in a way that makes MDN disappear
and it's now possible to browse MDN in Ladybird. :^)
This commit is contained in:
Andreas Kling 2023-06-07 17:11:01 +02:00
parent 7f90b0cab7
commit dd2080c55f
3 changed files with 21 additions and 0 deletions

View file

@ -79,6 +79,11 @@ interface Element : Node {
undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
undefined scroll(optional ScrollToOptions options = {});
undefined scroll(unrestricted double x, unrestricted double y);
[ImplementedAs=scroll] undefined scrollTo(optional ScrollToOptions options = {});
[ImplementedAs=scroll] undefined scrollTo(unrestricted double x, unrestricted double y);
};
dictionary ShadowRootInit {