From 59afcddcfe0c4cebf5a0b64f37b6e9d7385384cf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 13 Dec 2020 15:22:41 +0100 Subject: [PATCH] LibWeb: Mark element style dirty on style/id attribute change too --- Libraries/LibWeb/DOM/Element.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } }