From eafcd82e8238cafb5e55fffdb145f141543ad87e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 28 Oct 2024 08:52:34 -0400 Subject: [PATCH] LibWeb: Support stroke-linecap as attribute as well This should have been part of #1714. (stroke-linecap still isn't implemented, but once it is, it will now work in attribute form as well.) --- Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp index 77c8351e88f..1128a46b5f1 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp @@ -149,6 +149,7 @@ void SVGGraphicsElement::apply_presentational_hints(CSS::StyleProperties& style) NamedPropertyID(CSS::PropertyID::Fill), // FIXME: The `stroke` attribute and CSS `stroke` property are not the same! But our support is limited enough that they are equivalent for now. NamedPropertyID(CSS::PropertyID::Stroke), + NamedPropertyID(CSS::PropertyID::StrokeLinecap), NamedPropertyID(CSS::PropertyID::StrokeWidth), NamedPropertyID(CSS::PropertyID::FillRule), NamedPropertyID(CSS::PropertyID::FillOpacity),