2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/DocumentFragment.idl>
|
2022-07-27 20:42:20 +01:00
|
|
|
#import <DOM/InnerHTML.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-07-27 20:42:20 +01:00
|
|
|
// https://dom.spec.whatwg.org/#shadowroot
|
2023-09-06 14:52:53 +12:00
|
|
|
[Exposed=Window]
|
2020-11-21 18:32:39 +00:00
|
|
|
interface ShadowRoot : DocumentFragment {
|
2023-01-28 20:31:56 +01:00
|
|
|
readonly attribute ShadowRootMode mode;
|
2022-07-27 20:42:20 +01:00
|
|
|
// FIXME: readonly attribute boolean delegatesFocus;
|
2023-09-01 07:25:40 -04:00
|
|
|
readonly attribute SlotAssignmentMode slotAssignment;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute Element host;
|
2022-07-27 20:42:20 +01:00
|
|
|
// FIXME: attribute EventHandler onslotchange;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-07-27 20:42:20 +01:00
|
|
|
|
2022-07-30 11:31:17 +01:00
|
|
|
ShadowRoot includes InnerHTML;
|
|
|
|
|
|
2022-07-27 20:42:20 +01:00
|
|
|
enum ShadowRootMode { "open", "closed" };
|
|
|
|
|
enum SlotAssignmentMode { "manual", "named" };
|