Files
ladybird/Libraries/LibWeb/DOM/Slottable.cpp
Andreas Kling 996080eeea LibWeb: Recompute style for slottables when slot assignment changes
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.
2026-04-26 10:40:58 +02:00

10 KiB