summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG
diff options
context:
space:
mode:
authorSimon Wanner <skyrising@pvpctutorials.de>2022-03-17 16:59:01 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-18 18:51:42 +0100
commita3c80f05ba5591fd30250f3cf107b5bb13ac1982 (patch)
tree3f91b4dd7bd1d5c841c55cb532ebf05f113ae89b /Userland/Libraries/LibWeb/SVG
parentc4f46893f6135aef115b53ba16ea8ced15057bcb (diff)
downloadserenity-a3c80f05ba5591fd30250f3cf107b5bb13ac1982.zip
LibWeb: Apply the 'transform' presentational attribute to SVG elements
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp
index 0cec4e59d1..9d62b0759c 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp
@@ -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());
}
});
}