ladybird/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl
Timothy Flynn 54b5a431a3 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.
2023-09-13 13:45:47 +02:00

18 lines
538 B
Plaintext

#import <DOM/DocumentFragment.idl>
#import <DOM/InnerHTML.idl>
// https://dom.spec.whatwg.org/#shadowroot
[Exposed=Window]
interface ShadowRoot : DocumentFragment {
readonly attribute ShadowRootMode mode;
// FIXME: readonly attribute boolean delegatesFocus;
readonly attribute SlotAssignmentMode slotAssignment;
readonly attribute Element host;
// FIXME: attribute EventHandler onslotchange;
};
ShadowRoot includes InnerHTML;
enum ShadowRootMode { "open", "closed" };
enum SlotAssignmentMode { "manual", "named" };