mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
assign_slottables only updated each slottable's m_assigned_slot pointer. The slottable's match against ::slotted(...) rules is determined by whether it's currently assigned to a slot, so gaining or losing an assignment must trigger a fresh style computation. Without that, mutations like changing a slot's name or a slottable's slot attribute left the slottable rendered against stale ::slotted() rules. Mark the slottable element for style update both when it loses an assignment and when it gains one.
10 KiB
10 KiB