diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 65496f9d1d..d36e85f4f2 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -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); } }