1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

LibWeb: Invalidate document style after Node.insertBefore()

This commit is contained in:
Andreas Kling 2022-03-14 21:39:33 +01:00
parent cf49e93b04
commit 5b8290dfa3

View file

@ -334,6 +334,8 @@ void Node::insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool supp
}
children_changed();
document().invalidate_style();
}
// https://dom.spec.whatwg.org/#concept-node-pre-insert