1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibWeb: Implement element slot-related attributes and settings

This implements the element's slot attribute itself, and setting the
slot assignment on the element's shadow root.
This commit is contained in:
Timothy Flynn 2023-09-01 07:25:40 -04:00 committed by Andreas Kling
parent 4e32f0d39f
commit 54b5a431a3
6 changed files with 12 additions and 4 deletions

View file

@ -599,7 +599,8 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<ShadowRoot>> Element::attach_shadow(ShadowR
if (m_custom_element_state == CustomElementState::Precustomized || m_custom_element_state == CustomElementState::Custom)
shadow->set_available_to_element_internals(true);
// FIXME: 8. Set shadows slot assignment to init["slotAssignment"].
// 8. Set shadows slot assignment to init["slotAssignment"].
shadow->set_slot_assignment(init.slot_assignment);
// 9. Set thiss shadow root to shadow.
set_shadow_root(shadow);