mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:27:45 +00:00
LibWeb: Add Base::apply_presentational_hints call to <symbol> element
This commit is contained in:
parent
d296992fb3
commit
f6c3ec3742
4 changed files with 14 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue