mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
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.
This commit is contained in:
parent
4e32f0d39f
commit
54b5a431a3
6 changed files with 12 additions and 4 deletions
|
@ -49,6 +49,7 @@ interface Element : Node {
|
|||
[Reflect, CEReactions] attribute DOMString id;
|
||||
[Reflect=class, CEReactions] attribute DOMString className;
|
||||
[SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
|
||||
[Reflect, CEReactions, Unscopable] attribute DOMString slot;
|
||||
|
||||
ShadowRoot attachShadow(ShadowRootInit init);
|
||||
readonly attribute ShadowRoot? shadowRoot;
|
||||
|
@ -90,7 +91,7 @@ interface Element : Node {
|
|||
dictionary ShadowRootInit {
|
||||
required ShadowRootMode mode;
|
||||
boolean delegatesFocus = false;
|
||||
// FIXME: SlotAssignmentMode slotAssignment = "named";
|
||||
SlotAssignmentMode slotAssignment = "named";
|
||||
};
|
||||
|
||||
Element includes ParentNode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue