diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 8b56b187d1..7c6b908a24 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -1041,7 +1041,7 @@ void Element::set_scroll_left(double x) return; auto* box = static_cast(layout_node()); - if (!box->is_scrollable()) + if (!box->is_scroll_container()) return; // FIXME: or the element has no overflow. @@ -1109,7 +1109,7 @@ void Element::set_scroll_top(double y) return; auto* box = static_cast(layout_node()); - if (!box->is_scrollable()) + if (!box->is_scroll_container()) return; // FIXME: or the element has no overflow.