diff --git a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp index 00ce1fca2e..baa673bc98 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp @@ -34,7 +34,7 @@ void SVGFormattingContext::run(Box const& box, LayoutMode) SVG::SVGSVGElement* svg_element = dom_node.first_ancestor_of_type(); - if (svg_element->has_attribute(HTML::AttributeNames::width) && svg_element->has_attribute(HTML::AttributeNames::width)) { + if (svg_element->has_attribute(HTML::AttributeNames::width) && svg_element->has_attribute(HTML::AttributeNames::height)) { geometry_box_state.offset = { 0, 0 }; auto& layout_node = static_cast(*(svg_element->layout_node()));