1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

LibWeb: Fix typo in SVGSVGElement::apply_presentational_hints()

Regressed in 7df62c64b7.

Thanks to Dex for spotting this! :^)
This commit is contained in:
Andreas Kling 2022-03-26 20:10:36 +01:00
parent fa99259412
commit d8be441978

View file

@ -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 }));