diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-04 13:50:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-04 15:40:34 +0200 |
commit | 4ad12f3cb214c3072640cd555e65a97ed1fed6ef (patch) | |
tree | 2c5707dda22baa477d072d6593510f79848dce66 | |
parent | 2abe62adfa7024c85f771cb0bfec9be902221a84 (diff) | |
download | serenity-4ad12f3cb214c3072640cd555e65a97ed1fed6ef.zip |
LibWeb: Honor fill, stroke and stroke-width attribute on SVGSVGElement
These are presentational hints and are handled by SVGGraphicsElement (a
superclass of SVGSVGElement) so we just need to call up to it. :^)
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp index 69b89bdfbc..1bf9adfb17 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp @@ -37,6 +37,8 @@ JS::GCPtr<Layout::Node> SVGSVGElement::create_layout_node(NonnullRefPtr<CSS::Sty void SVGSVGElement::apply_presentational_hints(CSS::StyleProperties& style) const { + Base::apply_presentational_hints(style); + // NOTE: Hack to ensure SVG unitless widths/heights are parsed even with <!DOCTYPE html> auto previous_quirks_mode = document().mode(); const_cast<DOM::Document&>(document()).set_quirks_mode(DOM::QuirksMode::Yes); |