From d8be441978978de538f1b53bcdfd9fc14acf3423 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Mar 2022 20:10:36 +0100 Subject: [PATCH] LibWeb: Fix typo in SVGSVGElement::apply_presentational_hints() Regressed in 7df62c64b7116842e43f2c8fcd1a7b0e71f456b7. Thanks to Dex for spotting this! :^) --- Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }));