Sync WPT with upstream (20-04-2025) (#36618)

Automated downstream sync of changes from upstream as of 20-04-2025
[no-wpt-sync]

Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
This commit is contained in:
Servo WPT Sync 2025-04-20 03:47:50 +02:00 committed by GitHub
parent d05496277e
commit c915bf05fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
502 changed files with 10162 additions and 1657 deletions

View file

@ -0,0 +1,9 @@
[Construct.html]
[A constructor with only a scoped custom element registry definition should fail upon construction]
expected: FAIL
[A constructor uses the global registry to create an element]
expected: FAIL
[A constructor creating an element from another registry before or after super call should work]
expected: FAIL

View file

@ -0,0 +1,9 @@
[CustomElementRegistry-define.html]
[Create a CustomElementRegistry not identically equal to window.customElements]
expected: FAIL
[Defining an element in the global registry does not add a definition to a scoped CustomElementRegistry]
expected: FAIL
[Defining an element in a scoped global registry does not add a definition to the global registry]
expected: FAIL

View file

@ -0,0 +1,21 @@
[CustomElementRegistry-initialize.html]
[initialize is a function on both global and scoped CustomElementRegistry]
expected: FAIL
[initialize sets element.customElementRegistry to the global registry]
expected: FAIL
[initialize does not set the registry of nested shadow tree to the global registry]
expected: FAIL
[initialize sets element.customElementRegistry to a scoped registry]
expected: FAIL
[initialize does not set the registry of nested shadow tree to a scoped registry]
expected: FAIL
[initialize sets element.customElementRegistry permantently]
expected: FAIL
[initialize is no-op on a subtree with a non-null registry]
expected: FAIL

View file

@ -0,0 +1,6 @@
[CustomElementRegistry-multi-register.html]
[Same constructor can be registered to different registries]
expected: FAIL
[Non-global registries still reject duplicate registrations of the same constructor]
expected: FAIL

View file

@ -0,0 +1,12 @@
[CustomElementRegistry-upgrade.html]
[upgrade is a function on both global and scoped CustomElementRegistry]
expected: FAIL
[upgrade is a no-op when called on a shadow root with no association]
expected: FAIL
[upgrade should upgrade a candidate element when called on a shadow root with an association]
expected: FAIL
[upgrade should not upgrade a candidate element not associated with the registry]
expected: FAIL

View file

@ -0,0 +1,2 @@
[Document-createElement.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[Document-createElementNS.html]
expected: ERROR

View file

@ -0,0 +1,12 @@
[Document-customElementRegistry.html]
[customElementRegistry on a document should return window.customElements by default]
expected: FAIL
[customElementRegistry on a document without a browsing context should return null]
expected: FAIL
[customElementRegistry on a document of a connected iframe should return contentWindow.customElements]
expected: FAIL
[customElementRegistry on a document of a disconnected iframe should return contentWindow.customElements]
expected: FAIL

View file

@ -0,0 +1,2 @@
[Document-importNode.html]
expected: ERROR

View file

@ -0,0 +1,6 @@
[Element-customElementRegistry-exceptions.html]
[customElementRegistry on a failed custom element created by calling createElement on CustomElementRegistry should return the registry]
expected: FAIL
[customElementRegistry on a failed custom element created by setting innerHTML should return the associated scoped registry]
expected: FAIL

View file

@ -0,0 +1,30 @@
[Element-customElementRegistry.html]
[customElementRegistry on a newly constrcuted element should return window.customElements by default]
expected: FAIL
[customElementRegistry on an element inside a declarative shadow DOM should return window.customElements by default]
expected: FAIL
[customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return null]
expected: FAIL
[customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return null]
expected: FAIL
[customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return the global registry after getting inserted into a document]
expected: FAIL
[customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return the scoped registry after calling initialize]
expected: FAIL
[customElementRegistry on a builtin element created by calling createElement on CustomElementRegistry should return the registry]
expected: FAIL
[customElementRegistry on an upgarde candidate created by calling createElement on CustomElementRegistry should return the registry]
expected: FAIL
[customElementRegistry on an unknown element created by calling createElement on CustomElementRegistry should return the registry]
expected: FAIL
[customElementRegistry on a defined custom element created by calling createElement on CustomElementRegistry should return the registry]
expected: FAIL

View file

@ -0,0 +1,6 @@
[Element-innerHTML.html]
[innerHTML on a disconnected element should use the scoped registry it was created with]
expected: FAIL
[innerHTML on an inserted element should continue to use the scoped registry it was created with]
expected: FAIL

View file

@ -0,0 +1,15 @@
[ShadowRoot-init-customElementRegistry.html]
[A newly attached disconnected ShadowRoot should use the global registry by default]
expected: FAIL
[A newly attached connected ShadowRoot should use the global registry by default]
expected: FAIL
[A newly attached disconnected ShadowRoot should use the scoped registry if explicitly specified in attachShadow]
expected: FAIL
[A newly attached connected ShadowRoot should use the scoped registry if explicitly specified in attachShadow]
expected: FAIL
[attachShadow() should throw for a null customElementRegistry value]
expected: FAIL

View file

@ -0,0 +1,12 @@
[ShadowRoot-innerHTML.html]
[innerHTML on a shadow root should use the scoped registry]
expected: FAIL
[innerHTML on a connected shadow root should use the associated scoped registry]
expected: FAIL
[innerHTML on a connected shadow root should not upgrade a custom element inside a template element]
expected: FAIL
[innerHTML on a connected shadow root should be able to create an unknown element]
expected: FAIL

View file

@ -0,0 +1,12 @@
[constructor-reentry-with-different-definition.html]
[Re-entry via upgrade before calling super()]
expected: FAIL
[Re-entry via upgrade after calling super()]
expected: FAIL
[Re-entry via direct constructor call before calling super()]
expected: FAIL
[Re-entry via direct constructor call after calling super()]
expected: FAIL

View file

@ -0,0 +1,3 @@
[initial-about-blank.window.html]
[Each navigable document has its own registry]
expected: FAIL

View file

@ -0,0 +1,3 @@
[per-global.html]
[Navigating from the initial about:blank must not replace window.customElements]
expected: FAIL

View file

@ -0,0 +1,9 @@
[pseudo-class-defined.window.html]
["uncustomized" :defined doesn't care about your registry']
expected: FAIL
["custom" :defined doesn't care about your registry]
expected: FAIL
[pseudo-class-defined]
expected: FAIL

View file

@ -0,0 +1,33 @@
[scoped-registry-define-upgrade-criteria.html]
[Adding definition to global registry should not affect shadow roots using scoped registry]
expected: FAIL
[Adding definition to scoped registry should affect all associated shadow roots]
expected: FAIL
[Adding definition to scoped registry should not affect document tree scope]
expected: FAIL
[Adding definition to scoped registry should not affect shadow roots using other registries]
expected: FAIL
[Adding definition to global registry should not upgrade nodes no longer using the registry]
expected: FAIL
[Adding definition to scoped registry should not upgrade nodes no longer using the registry]
expected: FAIL
[Adding definition to scoped registry affects associated shadow roots in all iframes]
expected: FAIL
[Adding definition to scoped registry affects associated shadow roots in other frame trees]
expected: FAIL
[Adding definition to scoped registry should not upgrade disconnected elements]
expected: FAIL
[Adding definition to scoped registry should not upgrade nodes in constructed documents]
expected: FAIL
[Adding definition to scoped registry should not upgrade nodes in detached frames]
expected: FAIL

View file

@ -0,0 +1,21 @@
[scoped-registry-define-upgrade-order.html]
[Upgrade in tree order in the same tree scope]
expected: FAIL
[Upgrade in shadow-including tree order across tree scopes]
expected: FAIL
[Upgrade order does not depend on shadow root attach order]
expected: FAIL
[Upgrade in association order across documents, then tree order in each document]
expected: FAIL
[Upgrade order is not affected by DOM order between child frames]
expected: FAIL
[Upgrade order is affected by shadow tree adoption across documents]
expected: FAIL
[Elements in the "owner" window of a scoped registry are not always upgraded first]
expected: FAIL

View file

@ -0,0 +1,21 @@
[scoped-registry-registry-define-get-etc.html]
[Custom element registries with a registered custom element return the class in their get method, and the name in their getName method]
expected: FAIL
[Scoped Custom element registries do not inherit names or classes from the global registry]
expected: FAIL
[Scoped Custom element registries return the same constructor when it is defined in both]
expected: FAIL
[Scoped Custom element registries allow registering name that exists in global registry]
expected: FAIL
[Custom element registries with a registered custom element resolve the class in their whenDefined method]
expected: FAIL
[Scoped Custom element registries resolve the same constructor from whenDefined when it is defined in both]
expected: FAIL
[Scoped Custom element registry getters do not resolve globally registered classes from whenDefined]
expected: FAIL

View file

@ -0,0 +1,9 @@
[template.window.html]
[shadowRootCustomElementRegistry reflects as string]
expected: FAIL
[Serializing a ShadowRoot with a null registry]
expected: FAIL
[Serializing a ShadowRoot with a registry that differs from its host]
expected: FAIL