diff --git a/source b/source index 9f6bfcc10b4..1a9cd887869 100644 --- a/source +++ b/source @@ -68244,6 +68244,7 @@ not-slash = %x0000-002E / %x0030-10FFFF
shadowrootclonable
shadowrootserializable
shadowrootcustomelementregistry
+
shadowrootslotassignment
Accessibility considerations:
For authors.
@@ -68260,6 +68261,7 @@ interface HTMLTemplateElement : HTMLElement { [CEReactions, Reflect] attribute boolean shadowRootClonable; [CEReactions, Reflect] attribute boolean shadowRootSerializable; [CEReactions, Reflect] attribute DOMString shadowRootCustomElementRegistry; + [CEReactions] attribute DOMString shadowRootSlotAssignment; };
Uses HTMLTemplateElement.
@@ -68312,6 +68314,32 @@ interface HTMLTemplateElement : HTMLElement { data-x="attr-template-shadowrootcustomelementregistry">shadowrootcustomelementregistry content attribute is a boolean attribute.

+

The shadowrootslotassignment content + attribute is an enumerated attribute with the following keywords and states:

+ + + + + + + +
Keyword + State + Brief description +
named + Named + The declarative shadow root uses named slot assignment. +
manual + Manual + The declarative shadow root uses manual slot assignment. +
+ +

The shadowrootslotassignment + attribute's invalid value default and missing value default are both the Named state.

+

The template contents of a template element are not children of the element itself.

@@ -68469,6 +68497,14 @@ interface HTMLTemplateElement : HTMLElement { data-x="dom-template-shadowRootCustomElementRegistry">shadowRootCustomElementRegistry IDL attribute intentionally does not have a boolean type so it can be extended.

+
+

The shadowRootSlotAssignment IDL attribute + must reflect the shadowrootslotassignment content attribute, + limited to only known values.

+
+
@@ -141138,6 +141174,13 @@ document.body.appendChild(text); data-x="attr-template-shadowrootdelegatesfocus">shadowrootdelegatesfocus attribute; otherwise false.

+
  • Let slotAssignment be "named".

  • + +
  • If templateStartTag's shadowrootslotassignment attribute is + in the Manual state, then + set slotAssignment to "manual".

  • +
  • If declarativeShadowHostElement is a shadow host, then insert an element at the adjusted insertion location with template.

  • @@ -141154,7 +141197,7 @@ document.body.appendChild(text);
  • Attach a shadow root with declarativeShadowHostElement, mode, clonable, - serializable, delegatesFocus, "named", and + serializable, delegatesFocus, slotAssignment, and registry.

    If an exception is thrown, then catch it and:

    @@ -144949,6 +144992,10 @@ document.body.appendChild(text);
  • If shadow's clonable is set, then append " shadowrootclonable=""".

  • +
  • If shadow's slot assignment is "manual", then append " shadowrootslotassignment="manual"".

  • +
  • Let shouldAppendRegistryAttribute be the result of running these steps:

    @@ -152882,7 +152929,8 @@ interface External { shadowrootdelegatesfocus; shadowrootclonable; shadowrootserializable; - shadowrootcustomelementregistry + shadowrootcustomelementregistry; + shadowrootslotassignment HTMLTemplateElement @@ -154438,6 +154486,12 @@ interface External { template Sets serializable on a declarative shadow root Boolean attribute + + shadowrootslotassignment + template + Sets slot assignment on a declarative shadow root + "named"; + "manual" shape area