1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibWeb: Mark element style dirty on style/id attribute change too

This commit is contained in:
Andreas Kling 2020-12-13 15:22:41 +01:00
parent 294ec3b6a5
commit 59afcddcfe

View file

@ -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);
}
}