1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 02:12:06 +00:00

LibWeb: Apply the 'transform' presentational attribute to SVG elements

This commit is contained in:
Simon Wanner 2022-03-17 16:59:01 +01:00 committed by Andreas Kling
parent c4f46893f6
commit a3c80f05ba

View file

@ -30,6 +30,9 @@ void SVGGraphicsElement::apply_presentational_hints(CSS::StyleProperties& style)
} else if (name.equals_ignoring_case("stroke-width")) {
if (auto stroke_width_value = parse_css_value(parsing_context, value, CSS::PropertyID::StrokeWidth))
style.set_property(CSS::PropertyID::StrokeWidth, stroke_width_value.release_nonnull());
} else if (name.equals_ignoring_case("transform")) {
if (auto transform = parse_css_value(parsing_context, value, CSS::PropertyID::Transform))
style.set_property(CSS::PropertyID::Transform, transform.release_nonnull());
}
});
}