diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 03e9bb05fb..0d34c19876 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -1924,7 +1924,8 @@ HashMap const& Element::custom_properti void Element::scroll(double x, double y) { // AD-HOC: - paintable_box()->scroll_by(x, y); + if (auto* paintable_box = this->paintable_box()) + paintable_box->scroll_by(x, y); } // https://drafts.csswg.org/cssom-view/#dom-element-scroll