mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +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:
parent
4e32f0d39f
commit
54b5a431a3
6 changed files with 12 additions and 4 deletions
|
@ -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 shadow’s slot assignment to init["slotAssignment"].
|
||||
// 8. Set shadow’s slot assignment to init["slotAssignment"].
|
||||
shadow->set_slot_assignment(init.slot_assignment);
|
||||
|
||||
// 9. Set this’s shadow root to shadow.
|
||||
set_shadow_root(shadow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue