web-features explorer

Imperative slot assignment

Newly available since 2023-03-27 (baseline low)

The assign() method for <slot> elements assigns nodes to the slot, as an alternative to using the slot and name HTML attributes. The nodes must be children of a shadow host and the shadow root must be created with the slotAssignment set to "manual". Also known as manual slot assignment.

Compatibility

BCD data