diff --git a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp index 35f592d977..2980cdceb1 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp @@ -36,7 +36,7 @@ void SVGSVGElement::apply_presentational_hints(CSS::StyleProperties& style) cons } // Height defaults to 100% - if (auto height_value = HTML::parse_dimension_value(attribute(SVG::AttributeNames::width))) { + if (auto height_value = HTML::parse_dimension_value(attribute(SVG::AttributeNames::height))) { style.set_property(CSS::PropertyID::Height, height_value.release_nonnull()); } else { style.set_property(CSS::PropertyID::Height, CSS::PercentageStyleValue::create(CSS::Percentage { 100 }));