1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Add Base::apply_presentational_hints call to <symbol> element

This commit is contained in:
0GreenClover0 2023-08-20 00:17:42 +02:00 committed by Andreas Kling
parent d296992fb3
commit f6c3ec3742
4 changed files with 14 additions and 1 deletions

View file

@ -31,6 +31,8 @@ void SVGSymbolElement::initialize(JS::Realm& realm)
// https://svgwg.org/svg2-draft/struct.html#SymbolNotes
void SVGSymbolElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
Base::apply_presentational_hints(style);
// The user agent style sheet sets the overflow property for symbol elements to hidden.
auto hidden = CSS::IdentifierStyleValue::create(CSS::ValueID::Hidden);
style.set_property(CSS::PropertyID::Overflow, CSS::OverflowStyleValue::create(hidden, hidden));