mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Mark element style dirty on style/id attribute change too
This commit is contained in:
@@ -164,6 +164,9 @@ void Element::parse_attribute(const FlyString& name, const String& value)
|
||||
set_needs_style_update(true);
|
||||
} else if (name == HTML::AttributeNames::style) {
|
||||
m_inline_style = parse_css_declaration(CSS::ParsingContext(document()), value);
|
||||
set_needs_style_update(true);
|
||||
} else if (name == HTML::AttributeNames::id) {
|
||||
set_needs_style_update(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user