mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Mark element style dirty when class attribute changes
Fixes #4403.
This commit is contained in:
parent
6af55a234f
commit
294ec3b6a5
Notes:
sideshowbarker
2024-07-19 00:53:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/294ec3b6a5d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue