mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
54b5a431a3
This implements the element's slot attribute itself, and setting the slot assignment on the element's shadow root.
18 lines
538 B
Plaintext
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" };
|