mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +00:00
LibWeb: Implement Element.attachShadow and Element.shadowRoot :^)
This commit is contained in:
parent
9ed4fe7049
commit
4311fd2774
3 changed files with 71 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/NodeList.idl>
|
||||
#import <DOM/ParentNode.idl>
|
||||
#import <DOM/ShadowRoot.idl>
|
||||
#import <Geometry/DOMRect.idl>
|
||||
#import <Geometry/DOMRectList.idl>
|
||||
|
||||
|
@ -50,6 +51,9 @@ interface Element : Node {
|
|||
[Reflect=class] attribute DOMString className;
|
||||
[SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
|
||||
|
||||
ShadowRoot attachShadow(ShadowRootInit init);
|
||||
readonly attribute ShadowRoot? shadowRoot;
|
||||
|
||||
boolean matches(DOMString selectors);
|
||||
Element? closest(DOMString selectors);
|
||||
|
||||
|
@ -81,6 +85,12 @@ interface Element : Node {
|
|||
|
||||
};
|
||||
|
||||
dictionary ShadowRootInit {
|
||||
required ShadowRootMode mode;
|
||||
boolean delegatesFocus = false;
|
||||
// FIXME: SlotAssignmentMode slotAssignment = "named";
|
||||
};
|
||||
|
||||
Element includes ParentNode;
|
||||
Element includes ChildNode;
|
||||
Element includes InnerHTML;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue