LibWeb: Mark element style dirty when class attribute changes

Fixes #4403.
This commit is contained in:
Andreas Kling 2020-12-13 15:21:34 +01:00
parent 6af55a234f
commit 294ec3b6a5
Notes: sideshowbarker 2024-07-19 00:53:45 +09:00

View file

@ -161,6 +161,7 @@ void Element::parse_attribute(const FlyString& name, const String& value)
for (auto& new_class : new_classes) {
m_classes.unchecked_append(new_class);
}
set_needs_style_update(true);
} else if (name == HTML::AttributeNames::style) {
m_inline_style = parse_css_declaration(CSS::ParsingContext(document()), value);
}