diff --git a/Tests/LibWeb/Text/expected/scroll-into-view-center.txt b/Tests/LibWeb/Text/expected/scroll-into-view-center.txt new file mode 100644 index 0000000000..fbdc2759f0 --- /dev/null +++ b/Tests/LibWeb/Text/expected/scroll-into-view-center.txt @@ -0,0 +1 @@ + The page has been scrolled to y: 800 diff --git a/Tests/LibWeb/Text/input/scroll-into-view-center.html b/Tests/LibWeb/Text/input/scroll-into-view-center.html new file mode 100644 index 0000000000..08accabdda --- /dev/null +++ b/Tests/LibWeb/Text/input/scroll-into-view-center.html @@ -0,0 +1,29 @@ + + +
+ + + diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 6af6fd6417..438f159aab 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -1672,7 +1672,7 @@ static ErrorOr