diff --git a/Tests/LibWeb/Ref/reference/svg-display-attr.html b/Tests/LibWeb/Ref/reference/svg-display-attr.html new file mode 100644 index 0000000000..366ce5d2d9 --- /dev/null +++ b/Tests/LibWeb/Ref/reference/svg-display-attr.html @@ -0,0 +1,4 @@ + + + + diff --git a/Tests/LibWeb/Ref/svg-display-attr.html b/Tests/LibWeb/Ref/svg-display-attr.html new file mode 100644 index 0000000000..c7fe5a2027 --- /dev/null +++ b/Tests/LibWeb/Ref/svg-display-attr.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp index c7644349e9..cd29ba3789 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp @@ -160,6 +160,7 @@ void SVGGraphicsElement::apply_presentational_hints(CSS::StyleProperties& style) NamedPropertyID(CSS::PropertyID::MaskType), NamedPropertyID(CSS::PropertyID::ClipPath), NamedPropertyID(CSS::PropertyID::ClipRule), + NamedPropertyID(CSS::PropertyID::Display), }; CSS::Parser::ParsingContext parsing_context { document(), CSS::Parser::ParsingContext::Mode::SVGPresentationAttribute };