diff --git a/source b/source index 9f6bfcc10b4..d75f1720c93 100644 --- a/source +++ b/source @@ -68241,6 +68241,7 @@ not-slash = %x0000-002E / %x0030-10FFFF
Global attributes
shadowrootmode
shadowrootdelegatesfocus
+
shadowrootslotassignment
shadowrootclonable
shadowrootserializable
shadowrootcustomelementregistry
@@ -68257,6 +68258,7 @@ interface HTMLTemplateElement : HTMLElement { readonly attribute DocumentFragment content; [CEReactions] attribute DOMString shadowRootMode; [CEReactions, Reflect] attribute boolean shadowRootDelegatesFocus; + [CEReactions] attribute DOMString shadowRootSlotAssignment; [CEReactions, Reflect] attribute boolean shadowRootClonable; [CEReactions, Reflect] attribute boolean shadowRootSerializable; [CEReactions, Reflect] attribute DOMString shadowRootCustomElementRegistry; @@ -68300,6 +68302,32 @@ interface HTMLTemplateElement : HTMLElement { data-x="attr-template-shadowrootdelegatesfocus">shadowrootdelegatesfocus 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 shadowrootclonable content attribute is a boolean attribute.

@@ -68465,6 +68493,14 @@ interface HTMLTemplateElement : HTMLElement { attribute, limited to only known values.

+
+

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

+
+

The shadowRootCustomElementRegistry IDL attribute intentionally does not have a boolean type so it can be extended.

@@ -141126,6 +141162,13 @@ document.body.appendChild(text);
  • Let mode be templateStartTag's shadowrootmode attribute's value.

  • +
  • Let slotAssignment be "named".

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

  • +
  • Let clonable be true if templateStartTag has a shadowrootclonable attribute; otherwise false.

  • @@ -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:

    @@ -144946,6 +144989,10 @@ document.body.appendChild(text);
  • If shadow's serializable is set, then append " shadowrootserializable=""".

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

  • +
  • If shadow's clonable is set, then append " shadowrootclonable=""".

  • @@ -152880,6 +152927,7 @@ interface External { globals; shadowrootmode; shadowrootdelegatesfocus; + shadowrootslotassignment; shadowrootclonable; shadowrootserializable; shadowrootcustomelementregistry @@ -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