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:
parent
fa99259412
commit
d8be441978
1 changed files with 1 additions and 1 deletions
|
@ -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 }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue