15.5custom-elements/registries/

2,488 / 2,492 WPT subtests passing

Failed
4
Timed out
0
Not run
0
Test files
44
Blocking files
0

Chrome 2,449 / 2,492 WPT subtests passing on the same files, 1 blocking

Tests

44 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
Construct.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. A constructor with only a scoped custom element registry definition should fail upon construction
  2. A constructor uses the global registry to create an element
  3. A constructor creating an element from another registry before or after super call should work
CustomElementRegistry-define.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Create a CustomElementRegistry not identically equal to window.customElements
  2. Defining an element in the global registry does not add a definition to a scoped CustomElementRegistry
  3. Defining an element in a scoped global registry does not add a definition to the global registry
CustomElementRegistry-initialize.html13 / 13 passingChrome 13 / 130 failedClean
Standing
Clean runner status OK
Chrome
Clean 13 / 13 WPT subtests passing runner status OK
13 passing subtests
  1. initialize throws when the registry scoped is false and the root is the document.
  2. initialize throws when the registry scoped is false and the root document already has another registry
  3. initialize is a function on both global and scoped CustomElementRegistry
  4. initialize sets element.customElementRegistry to the global registry
  5. initialize does not set the registry of nested shadow tree to the global registry
  6. initialize sets element.customElementRegistry to a scoped registry
  7. initialize does not set descendants whose customElementRegistry already uses a different registry
  8. initialize does not set the registry of nested shadow tree to a scoped registry
  9. initialize sets element.customElementRegistry permantently
  10. initialize is no-op on a subtree with a non-null registry
  11. initialize works on Document
  12. initialize works on DocumentFragment
  13. initialize sets registry on shadow root descendants with no registry
CustomElementRegistry-multi-register.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Same constructor can be registered to different registries
  2. Non-global registries still reject duplicate registrations of the same constructor
CustomElementRegistry-upgrade.html5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. upgrade is a function on both global and scoped CustomElementRegistry
  2. upgrade is a no-op when called on a shadow root with no association
  3. upgrade is a no-op when called on an element associated with a different registry
  4. upgrade should upgrade a candidate element when called on a shadow root with an association
  5. upgrade should not upgrade a candidate element not associated with a registry
Document-createElement.html10 / 10 passingChrome 10 / 100 failedClean
Standing
Clean runner status OK
Chrome
Clean 10 / 10 WPT subtests passing runner status OK
10 passing subtests
  1. createElement should use the global registry by default
  2. createElement should use the specified scoped registry
  3. createElement should create a builtin element regardless of a custom element registry specified
  4. createElement should use the specified global registry
  5. createElement should create an upgrade candidate when there is no matching definition in the specified registry
  6. document.createElement should create a builtin element with null registry if customElementRegistry is set to null
  7. document.createElement should create a custom element candidate with null registry if customElementRegistry is set to null
  8. document.createElement should create a custom element candidate with null registry if customElementRegistry is set to null even if there is a custom element of the same name in the glboal registry
  9. createElement should create an upgrade candidate and the candidate should be upgraded when the element is defined
  10. createElement on a non-HTML document should still handle registries correctly
Document-createElementNS.html10 / 10 passingChrome 10 / 100 failedClean
Standing
Clean runner status OK
Chrome
Clean 10 / 10 WPT subtests passing runner status OK
10 passing subtests
  1. createElementNS should use the global registry by default
  2. createElementNS should use the specified scoped registry
  3. createElementNS should create a builtin element regardless of a custom element registry specified
  4. createElementNS should use the specified global registry
  5. createElementNS should create an upgrade candidate when there is no matching definition in the specified registry
  6. document.createElement should create a builtin element with null registry if customElement is set to null
  7. document.createElement should create a custom element candidate with null registry if customElement is set to null
  8. document.createElement should create a defined custom element with null registry if customElement is set to null
  9. createElementNS should create an upgrade candidate and the candidate should be upgraded when the element is defined
  10. createElementNS on a non-HTML document should still handle registries correctly
Document-customElementRegistry.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. customElementRegistry on a document should return window.customElements by default
  2. customElementRegistry on a document without a browsing context should return null
  3. customElementRegistry on a document of a connected iframe should return contentWindow.customElements
  4. customElementRegistry on a document of a disconnected iframe should return contentWindow.customElements
Document-importNode-cross-document.window.js15 / 15 passingChrome 15 / 150 failedClean
Standing
Clean runner status OK
Chrome
Clean 15 / 15 WPT subtests passing runner status OK
15 passing subtests
  1. Cloning with global registry
  2. Cloning with explicit global registry
  3. Cloning with scoped registry
  4. Cloning including shadow tree with global registry
  5. Cloning including shadow tree with explicit global registry
  6. Cloning including shadow tree with scoped registry
  7. Cloning with global registry (null registry target)
  8. Cloning with explicit global registry (null registry target)
  9. Cloning with scoped registry (null registry target)
  10. Cloning including shadow tree with global registry (null registry target)
  11. Cloning including shadow tree with explicit global registry (null registry target)
  12. Cloning including shadow tree with scoped registry (null registry target)
  13. Cloning with global registry (scoped registry target)
  14. Cloning including shadow tree with global registry (scoped registry target)
  15. Cloning including shadow tree with scoped registry (scoped registry target)
Document-importNode.html20 / 20 passingChrome 20 / 200 failedClean
Standing
Clean runner status OK
Chrome
Clean 20 / 20 WPT subtests passing runner status OK
20 passing subtests
  1. importNode should clone using the global regsitry by default
  2. importNode should clone using target's registry if non-null
  3. importNode should clone using the specified registry if target's registry is null
  4. importNode should preserve null-ness of custom element registry
  5. importNode should clone a shadow host with a declarative shadow DOM using the global registry by default
  6. importNode should clone a shadow host with a declarative shadow DOM using a specified scoped registry
  7. importNode should clone using target's registry if non-null, including when it's not the global registry
  8. importNode should clone a template content using the global registry by default
  9. importNode should clone a template content using a specified scoped registry
  10. importNode should clone a template content with a nested template element using a scoped registry
  11. importNode: don't pass options argument
  12. importNode: pass options argument with value false
  13. importNode: pass options argument with value true
  14. importNode: pass options argument with value undefined
  15. importNode: pass options argument with value { }
  16. importNode: pass options argument with value { selfOnly: false }
  17. importNode: pass options argument with value { selfOnly: true }
  18. importNode: pass options argument with value { customElementRegistry: scopedRegistry }
  19. importNode: pass options argument with value { customElementRegistry: null }
  20. importNode should use the provided fallback registry for null-registry descendants nested under non-null-registry ancestors
Element-attachShadow-disabled-shadow.window.js7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. attachShadow() throws when the element's scoped registry disables shadow for its name
  2. attachShadow() throws when the element's scoped registry disables shadow for its name, after the element is appended to the document
  3. attachShadow() ignores the global registry for an element with a scoped registry
  4. attachShadow() throws when the scoped registry of the element's shadow tree disables shadow for its name
  5. attachShadow() ignores the global registry for an element in a shadow tree with a scoped registry
  6. attachShadow() throws when the global registry disables shadow for the name of an element that keeps it in a shadow tree with a scoped registry
  7. attachShadow() ignores the global registry for an element with a null registry
Element-customElementRegistry-exceptions.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. customElementRegistry on a failed custom element created by calling createElement on CustomElementRegistry should return the registry
  2. customElementRegistry on a failed custom element created by setting innerHTML should return the associated scoped registry
  3. customElementRegistry on a failed custom element created by parser should return the specified custom regsitry
Element-customElementRegistry.html11 / 11 passingChrome 11 / 110 failedClean
Standing
Clean runner status OK
Chrome
Clean 11 / 11 WPT subtests passing runner status OK
11 passing subtests
  1. customElementRegistry on a newly constrcuted element should return window.customElements by default
  2. customElementRegistry on an element inside a declarative shadow DOM should return window.customElements by default
  3. customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return null
  4. customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return null
  5. customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return the global registry after getting inserted into a document
  6. customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return the scoped registry after calling initialize
  7. customElementRegistry on a builtin element created by calling createElement on CustomElementRegistry should return the registry
  8. customElementRegistry on an upgarde candidate created by calling createElement on CustomElementRegistry should return the registry
  9. customElementRegistry on an unknown element created by calling createElement on CustomElementRegistry should return the registry
  10. customElementRegistry on a defined custom element created by calling createElement on CustomElementRegistry should return the registry
  11. customElementRegistry inside a custom element constructor should return the correct registry
Element-innerHTML.html11 / 12 passingChrome 12 / 121 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 12 / 12 WPT subtests passing runner status OK
  1. FAILinsertAdjacentHTML should use the element's registry even when the registry is null
    assert_equals: expected null but got object "[object CustomElementRegistry]"
11 passing subtests
  1. innerHTML on a disconnected element should use the scoped registry it was created with
  2. nested descendants in innerHTML on a disconnected element should use the scoped registry the element was created with
  3. innerHTML on a disconnected element should use the scoped registry it was created with when parsing a simple HTML
  4. innerHTML on an inserted element should continue to use the scoped registry it was created with
  5. nested descendants in innerHTML should use the null registry when the container element has null registry
  6. createContextualFragment on a range inside a template should use null registry even when the template has a scoped registry
  7. innerHTML on a template with a scoped registry should use the scoped registry of the document
  8. createContextualFragment on a range inside an element with scoped registry should use the scoped registry of the element
  9. insertAdjacentHTML with beforebegin should use the containing scope's registry
  10. insertAdjacentHTML with afterend should use the containing scope's registry
  11. outerHTML setter should use the parent scope's registry, not the replaced element's
ShadowRoot-init-customElementRegistry.html12 / 12 passingChrome 12 / 120 failedClean
Standing
Clean runner status OK
Chrome
Clean 12 / 12 WPT subtests passing runner status OK
12 passing subtests
  1. A newly attached disconnected ShadowRoot should use the global registry by default
  2. A newly attached connected ShadowRoot should use the global registry by default
  3. A newly attached ShadowRoot should use the global registry by default even if the host uses a custom registry
  4. A newly attached ShadowRoot should use the global registry by default even if the host is within another shadow tree that uses a custom registry
  5. A newly attached disconnected ShadowRoot should use the scoped registry if explicitly specified in attachShadow
  6. A newly attached connected ShadowRoot should use the scoped registry if explicitly specified in attachShadow
  7. attachShadow() should use null registry when customElementRegistry is null (host uses global registry)
  8. attachShadow() should use null registry when customElementRegistry is null (host uses custom registry)
  9. attchShadow on a builtin element with null customElementRegistry should create a ShadowRoot with null registry
  10. attchShadow on a custom elememnt candidate with null customElementRegistry should create a ShadowRoot with null registry
  11. attchShadow on a custom elememnt with null customElementRegistry should create a ShadowRoot with null registry
  12. attachShadow() should use the null registry when the shadow host uses null registry and customElementRegistry is null
ShadowRoot-init-declarative.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Custom element inside 'shadowrootcustomelementregistry' declarative shadow root should use document's registry as attachShadow default registry
  2. Built-in element inside 'shadowrootcustomelementregistry' declarative shadow root should use document's registry as attachShadow default registry
  3. Built-in element inside 'shadowrootcustomelementregistry' shadow root parsed via setHTMLUnsafe should use null registry
ShadowRoot-innerHTML.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. innerHTML on a shadow root should use the scoped registry
  2. innerHTML on a connected shadow root should use the associated scoped registry
  3. innerHTML on a connected shadow root should not upgrade a custom element inside a template element
  4. innerHTML on a connected shadow root should be able to create an unknown element
adoption-before-upgrade.window.js3 / 5 passingChrome 3 / 52 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 3 / 5 WPT subtests passing runner status OK
  1. FAILUpgrade after adoption with global registry
    assert_equals: reported exceptions expected 1 but got 0
  2. FAILUpgrade after adoption with global registry (customElements of target not accessed before)
    assert_equals: reported exceptions expected 1 but got 0
3 passing subtests
  1. Upgrade after adoption with global registry (null registry target)
  2. Upgrade after adoption with global registry (template contents target)
  3. Upgrade after adoption with global registry (scoped registry target)
adoption-null-registry-shadow-root.window.js6 / 6 passingChrome 5 / 60 failedClean
Standing
Clean runner status OK
Chrome
With failures 5 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. Shadow root with a null registry adopted into a document with a scoped registry
  2. Shadow root attached in a document with a null registry, adopted into a document with a scoped registry
  3. Shadow root adopted into a document with a null registry and back
  4. Shadow root cloned into a document with a null registry, then adopted
  5. initialize() on a shadow root attached in a document with a null registry
  6. initialize() on a shadow root adopted into a document with a null registry
adoption.window.js36 / 36 passingChrome 36 / 360 failedClean
Standing
Clean runner status OK
Chrome
Clean 36 / 36 WPT subtests passing runner status OK
36 passing subtests
  1. Adoption with global registry
  2. Adoption with explicit global registry
  3. Adoption with scoped registry
  4. Adoption with global registry into a scoped registry
  5. Adoption with explicit global registry into a scoped registry
  6. Adoption with scoped registry into a scoped registry
  7. Adoption including shadow root with global registry
  8. Adoption including shadow root with explicit global registry
  9. Adoption including shadow root with scoped registry
  10. Adoption including shadow root with global registry into a scoped registry
  11. Adoption including shadow root with explicit global registry into a scoped registry
  12. Adoption including shadow root with scoped registry into a scoped registry
  13. Adoption with global registry (null registry target)
  14. Adoption with explicit global registry (null registry target)
  15. Adoption with scoped registry (null registry target)
  16. Adoption with global registry into a scoped registry (null registry target)
  17. Adoption with explicit global registry into a scoped registry (null registry target)
  18. Adoption with scoped registry into a scoped registry (null registry target)
  19. Adoption including shadow root with global registry (null registry target)
  20. Adoption including shadow root with explicit global registry (null registry target)
  21. Adoption including shadow root with scoped registry (null registry target)
  22. Adoption including shadow root with global registry into a scoped registry (null registry target)
  23. Adoption including shadow root with explicit global registry into a scoped registry (null registry target)
  24. Adoption including shadow root with scoped registry into a scoped registry (null registry target)
  25. Adoption with global registry (scoped registry target)
  26. Adoption with explicit global registry (scoped registry target)
  27. Adoption with scoped registry (scoped registry target)
  28. Adoption with global registry into a scoped registry (scoped registry target)
  29. Adoption with explicit global registry into a scoped registry (scoped registry target)
  30. Adoption with scoped registry into a scoped registry (scoped registry target)
  31. Adoption including shadow root with global registry (scoped registry target)
  32. Adoption including shadow root with explicit global registry (scoped registry target)
  33. Adoption including shadow root with scoped registry (scoped registry target)
  34. Adoption including shadow root with global registry into a scoped registry (scoped registry target)
  35. Adoption including shadow root with explicit global registry into a scoped registry (scoped registry target)
  36. Adoption including shadow root with scoped registry into a scoped registry (scoped registry target)
constructor-direct-call-fallback-registry.window.js2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Direct construction of a global-only element after super() during a scoped upgrade
  2. Direct construction of a global-only element before super() during a scoped upgrade
constructor-from-another-window.window.js3 / 3 passingChrome 1 / 30 failedClean
Standing
Clean runner status OK
Chrome
With failures 1 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Upgrade with another window's global registry and a constructor from this window
  2. Upgrade with a scoped registry and a constructor from another window
  3. Constructing directly uses the registry of the HTMLElement constructor's window
constructor-reentry-createElement.window.js4 / 4 passingChrome 2 / 40 failedClean
Standing
Clean runner status OK
Chrome
With failures 2 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Re-entry via createElement with a different registry after super()
  2. Re-entry via createElement with a different registry before super()
  3. Direct construction of a global-only element after super() during a scoped createElement construction
  4. Direct construction of a global-only element before super() during a scoped createElement construction
constructor-reentry-with-different-definition.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Re-entry via upgrade before calling super()
  2. Re-entry via upgrade after calling super()
  3. Re-entry via direct constructor call before calling super()
  4. Re-entry via direct constructor call after calling super()
define-customized-builtins.html15 / 15 passingChrome 15 / 150 failedClean
Standing
Clean runner status OK
Chrome
Clean 15 / 15 WPT subtests passing runner status OK
15 passing subtests
  1. If extends is a-, should throw a NotSupportedError
  2. If extends is a-a, should throw a NotSupportedError
  3. If extends is aa-, should throw a NotSupportedError
  4. If extends is aa-a, should throw a NotSupportedError
  5. If extends is a-.-_, should throw a NotSupportedError
  6. If extends is a-0123456789, should throw a NotSupportedError
  7. If extends is a-漢字, should throw a NotSupportedError
  8. If extends is a-𠀋, should throw a NotSupportedError
  9. If extends is bgsound, should throw a NotSupportedError
  10. If extends is blink, should throw a NotSupportedError
  11. If extends is isindex, should throw a NotSupportedError
  12. If extends is multicol, should throw a NotSupportedError
  13. If extends is nextid, should throw a NotSupportedError
  14. If extends is spacer, should throw a NotSupportedError
  15. If extends is elementnametobeunknownelement, should throw a NotSupportedError
define.html70 / 70 passingChrome 70 / 700 failedClean
Standing
Clean runner status OK
Chrome
Clean 70 / 70 WPT subtests passing runner status OK
70 passing subtests
  1. "window.customElements.define" should exists
  2. If no arguments, should throw a TypeError
  3. If one argument, should throw a TypeError
  4. If constructor is undefined, should throw a TypeError
  5. If constructor is null, should throw a TypeError
  6. If constructor is object, should throw a TypeError
  7. If constructor is string, should throw a TypeError
  8. If constructor is arrow function, should throw a TypeError
  9. If constructor is method, should throw a TypeError
  10. Element names: defining an element named a- should succeed
  11. Element names: defining an element named a-a should succeed
  12. Element names: defining an element named aa- should succeed
  13. Element names: defining an element named aa-a should succeed
  14. Element names: defining an element named a-.-_ should succeed
  15. Element names: defining an element named a-0123456789 should succeed
  16. Element names: defining an element named a-漢字 should succeed
  17. Element names: defining an element named a-𠀋 should succeed
  18. Element names: defining an element named a-a× should succeed
  19. Element names: defining an element named a-a  should succeed
  20. Element names: defining an element named a-a󰀀 should succeed
  21. Element names: defining an element named undefined should throw a SyntaxError
  22. Element names: defining an element named null should throw a SyntaxError
  23. Element names: defining an element named should throw a SyntaxError
  24. Element names: defining an element named - should throw a SyntaxError
  25. Element names: defining an element named a should throw a SyntaxError
  26. Element names: defining an element named input should throw a SyntaxError
  27. Element names: defining an element named mycustomelement should throw a SyntaxError
  28. Element names: defining an element named A should throw a SyntaxError
  29. Element names: defining an element named A- should throw a SyntaxError
  30. Element names: defining an element named 0- should throw a SyntaxError
  31. Element names: defining an element named a-A should throw a SyntaxError
  32. Element names: defining an element named a-Z should throw a SyntaxError
  33. Element names: defining an element named A-a should throw a SyntaxError
  34. Element names: defining an element named annotation-xml should throw a SyntaxError
  35. Element names: defining an element named color-profile should throw a SyntaxError
  36. Element names: defining an element named font-face should throw a SyntaxError
  37. Element names: defining an element named font-face-src should throw a SyntaxError
  38. Element names: defining an element named font-face-uri should throw a SyntaxError
  39. Element names: defining an element named font-face-format should throw a SyntaxError
  40. Element names: defining an element named font-face-name should throw a SyntaxError
  41. Element names: defining an element named missing-glyph should throw a SyntaxError
  42. If the name is already defined, should throw a NotSupportedError
  43. If the constructor is already defined, should throw a NotSupportedError
  44. If constructor.prototype throws, should rethrow
  45. If Type(constructor.prototype) is undefined, should throw a TypeError
  46. If Type(constructor.prototype) is string, should throw a TypeError
  47. If constructor.prototype.connectedCallback throws, should rethrow
  48. If constructor.prototype.connectedCallback is undefined, should succeed
  49. If constructor.prototype.connectedCallback is function, should succeed
  50. If constructor.prototype.connectedCallback is null, should throw a TypeError
  51. If constructor.prototype.connectedCallback is object, should throw a TypeError
  52. If constructor.prototype.connectedCallback is integer, should throw a TypeError
  53. If constructor.prototype.disconnectedCallback throws, should rethrow
  54. If constructor.prototype.disconnectedCallback is undefined, should succeed
  55. If constructor.prototype.disconnectedCallback is function, should succeed
  56. If constructor.prototype.disconnectedCallback is null, should throw a TypeError
  57. If constructor.prototype.disconnectedCallback is object, should throw a TypeError
  58. If constructor.prototype.disconnectedCallback is integer, should throw a TypeError
  59. If constructor.prototype.adoptedCallback throws, should rethrow
  60. If constructor.prototype.adoptedCallback is undefined, should succeed
  61. If constructor.prototype.adoptedCallback is function, should succeed
  62. If constructor.prototype.adoptedCallback is null, should throw a TypeError
  63. If constructor.prototype.adoptedCallback is object, should throw a TypeError
  64. If constructor.prototype.adoptedCallback is integer, should throw a TypeError
  65. If constructor.prototype.attributeChangedCallback throws, should rethrow
  66. If constructor.prototype.attributeChangedCallback is undefined, should succeed
  67. If constructor.prototype.attributeChangedCallback is function, should succeed
  68. If constructor.prototype.attributeChangedCallback is null, should throw a TypeError
  69. If constructor.prototype.attributeChangedCallback is object, should throw a TypeError
  70. If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError
element-mutation-null-registry-removal.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. An element's null customElementRegistry should not mutate after removal from a declarative shadow root with shadowrootcustomelementregistry.
element-mutation.html15 / 15 passingChrome 15 / 150 failedClean
Standing
Clean runner status OK
Chrome
Clean 15 / 15 WPT subtests passing runner status OK
15 passing subtests
  1. An element with global registry should not change its registry when run append into a shadow tree with scoped registry.
  2. An element with scoped registry should not change its registry when run append out of the shadow tree.
  3. An element with scoped registry should not change its registry when run append into another shadow tree with different scoped registry.
  4. A freshly created element should preserve global registry after append into and removal from a scoped shadow root.
  5. A freshly created element should preserve global registry when run append between scoped shadow roots.
  6. An element with global registry should not change its registry when run appendChild into a shadow tree with scoped registry.
  7. An element with scoped registry should not change its registry when run appendChild out of the shadow tree.
  8. An element with scoped registry should not change its registry when run appendChild into another shadow tree with different scoped registry.
  9. A freshly created element should preserve global registry after appendChild into and removal from a scoped shadow root.
  10. A freshly created element should preserve global registry when run appendChild between scoped shadow roots.
  11. An element with global registry should not change its registry when run prepend into a shadow tree with scoped registry.
  12. An element with scoped registry should not change its registry when run prepend out of the shadow tree.
  13. An element with scoped registry should not change its registry when run prepend into another shadow tree with different scoped registry.
  14. A freshly created element should preserve global registry after prepend into and removal from a scoped shadow root.
  15. A freshly created element should preserve global registry when run prepend between scoped shadow roots.
global-registry-access-timing.window.js16 / 16 passingChrome 10 / 160 failedClean
Standing
Clean runner status OK
Chrome
With failures 10 / 16 WPT subtests passing runner status OK
16 passing subtests
  1. Shadow root attached before customElements is accessed
  2. Declarative shadow root attached before customElements is accessed
  3. Shadow root cloned before customElements is accessed
  4. Shadow root imported into a document before its customElements is accessed
  5. Template contents imported before customElements is accessed
  6. Element appended to a shadow root with a null registry before customElements is accessed
  7. Shadow root attached after customElements is accessed
  8. Declarative shadow root attached after customElements is accessed
  9. Shadow root cloned after customElements is accessed
  10. Shadow root imported into a document after its customElements is accessed
  11. Template contents imported after customElements is accessed
  12. Element appended to a shadow root with a null registry after customElements is accessed
  13. Shadow root adopted before either document's customElements is accessed
  14. Shadow root adopted after only the old document's customElements is accessed
  15. Shadow root adopted after only the new document's customElements is accessed
  16. Shadow root adopted after both documents' customElements are accessed
global.window.js5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. initialize() of global registry should throw for nodes from another document
  2. createElement() should throw with global registry from another document
  3. createElementNS() should throw with global registry from another document
  4. attachShadow() should throw with global registry from another document
  5. importNode() should throw with global registry from another document
initial-about-blank.window.js4 / 4 passingChrome 1 / 40 failedClean
Standing
Clean runner status OK
Chrome
With failures 1 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Each navigable document has its own registry
  2. The initial about:blank document keeps its registry when its window is reused
  3. define() on the initial about:blank document's registry after its window is reused upgrades nothing
  4. A removed iframe's window keeps its document's registry after garbage collection
per-document.html4 / 4 passingChrome 3 / 40 failedClean
Standing
Clean runner status OK
Chrome
With failures 3 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Navigating from the transient about:blank must replace window.customElements
  2. Navigating from the initial about:blank must replace window.customElements
  3. Discarding the browsing context must not change window.customElements
  4. document.open() must not replace window.customElements
pseudo-class-defined.window.js3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. "uncustomized" :defined doesn't care about your registry'
  2. "custom" :defined doesn't care about your registry
  3. "custom" :defined should apply after initialize
scoped-custom-element-registry-customelementregistry-attribute.html23 / 23 passingChrome 23 / 230 failedClean
Standing
Clean runner status OK
Chrome
Clean 23 / 23 WPT subtests passing runner status OK
23 passing subtests
  1. HTML parser should create a builtin element with null registry if customelementregistry is set
  2. Setting customelementregistry content attribute after a builtin element had finishsed parsing should not set null registry
  3. Cloning a builtin element with null regsitry should create an element with null registry
  4. HTML parser should create a custom element candidate with null registry if customelementregistry is set
  5. Setting customelementregistry content attribute after a custom element candidate had finishsed parsing should not set null registry
  6. Cloning a custom element candidate with null regsitry should create an element with null registry
  7. HTML parser should create a custom element with null registry if customelementregistry is set
  8. Setting customelementregistry content attribute after a custom element had finishsed parsing should not set null registry
  9. Cloning a custom element with null regsitry should create an element with null registry
  10. Descendants of an element with customelementregistry should use null registry
  11. Setting customelementregistry content attribute during constructor should not make it use null registry
  12. Body with customelementregistry attribute during initial parse should have null registry and propagate to children
  13. Custom element candidate child of body with customelementregistry should have null registry during initial parse
  14. Descendants of body with customelementregistry should all have null registry during initial parse
  15. Body with customelementregistry in a complete document structure should have null registry
  16. Initial parse: built-in element with customelementregistry has null registry
  17. Initial parse: custom element candidate with customelementregistry has null registry
  18. Initial parse: built-in element without customelementregistry uses global registry
  19. Initial parse: custom element candidate without customelementregistry uses global registry
  20. Initial parse: child of element with customelementregistry inherits null registry
  21. Initial parse: custom element candidate child inherits null registry from parent
  22. Initial parse: deeply nested descendant inherits null registry
  23. Initial parse: global registry define only upgrades elements without customelementregistry
scoped-registry-append.html15 / 16 passingChrome 14 / 161 failedWith failures
Standing
With failures runner status OK
Chrome
ERROR 14 / 16 WPT subtests passing runner status ERROR
  1. FAILGlobal registry element should gain effective global registry of scoped registry from its parent upon adoption.
    assert_equals: expected object "[object CustomElementRegistry]" but got null
15 passing subtests
  1. customElementRegistry of an upgrade candidate created in a document without a browsing context uses null regsitry by default
  2. Connecting a custom element candiate in a shadow root with a scoped custom element registry has null registry by default
  3. Connecting a custom element candiate with null registry does not set the registry
  4. Connecting a custom element candiate with a scoped custom element registry does not change the registry
  5. Inserting a custom element candiate with null registry does not change the registry
  6. Inserting the shadow host of a shadow root with a scoped custom element registry does not change the registry
  7. Inserting a node from another document with global registry results in the custom element registry to be set and upgraded.
  8. Inserting a node from another document with null registry results in the custom element registry to be set and upgraded.
  9. Inserting a node cloned from a template with null registry into a scoped shadow root should set global registry
  10. adoptNode then inserting into a scoped shadow root should preserve global registry
  11. Declarative shadow DOM without shadowrootcustomelementregistry attribute without registry initialized should gain effective global registry after adoption.
  12. Declarative shadow DOM with shadowrootcustomelementregistry attribute without registry initialized should remain null registry after adoption.
  13. Null registry element should gain effective global registry of global registry from its parent upon adoption.
  14. Null registry element should gain effective global registry of null from its parent upon adoption.
  15. Null registry element should gain effective global registry of scoped registry from its parent upon adoption.
scoped-registry-define-upgrade-criteria.html14 / 14 passingChrome 14 / 140 failedClean
Standing
Clean runner status OK
Chrome
Clean 14 / 14 WPT subtests passing runner status OK
14 passing subtests
  1. Adding definition to scoped registry should upgrade nodes associated with the registry.
  2. Adding definition to global registry should not affect shadow roots using scoped registry
  3. Adding definition to global registry should affect shadow roots also using global registry
  4. Adding definition to scoped registry should affect all associated shadow roots
  5. Adding definition to scoped registry should not affect document tree scope
  6. Adding definition to scoped registry should not affect shadow roots using other registries
  7. Adding definition to scoped registry should upgrade nodes even after the node is moved into a separate shadow tree.
  8. Adding definition to scoped registry should upgrade nodes even after the node is moved to a separate shadow tree using a different registry.
  9. Adding definition to scoped registry affects associated shadow roots in all iframes
  10. Adding definition to scoped registry affects associated shadow roots in other frame trees
  11. Adding definition to scoped registry should not upgrade disconnected elements
  12. Adding definition to scoped registry should not upgrade nodes in constructed documents
  13. Adding definition to scoped registry should not upgrade nodes in detached frames
  14. Adding definition to scoped registry should not upgrade nodes in closed windows
scoped-registry-define-upgrade-order.html7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. Upgrade in tree order in the same tree scope
  2. Upgrade in shadow-including tree order across tree scopes
  3. Upgrade order does not depend on shadow root attach order
  4. Upgrade in association order across documents, then tree order in each document
  5. Upgrade order is not affected by DOM order between child frames
  6. Upgrade order is affected by shadow tree adoption across documents
  7. Elements in the "owner" window of a scoped registry are not always upgraded first
scoped-registry-effective-global-registry.html66 / 66 passingChrome 42 / 660 failedClean
Standing
Clean runner status OK
Chrome
With failures 42 / 66 WPT subtests passing runner status OK
66 passing subtests
  1. Null registry element with element parent without custom element registry attribute (null registry) appended to new document
  2. Null registry element with element parent without custom element registry attribute (global registry) appended to new document
  3. Null registry element with element parent without custom element registry attribute (scoped registry) appended to new document
  4. Null registry element with declarative shadow root parent without custom element registry attribute appended to new document
  5. Null registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
  6. Null registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
  7. Null registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
  8. Null registry element with imperative shadow root parent (null registry) appended to new document
  9. Null registry element with imperative shadow root parent (global registry) appended to new document
  10. Null registry element with imperative shadow root parent (scoped registry) appended to new document
  11. Global registry element with element parent without custom element registry attribute (null registry) appended to new document
  12. Global registry element with element parent without custom element registry attribute (global registry) appended to new document
  13. Global registry element with element parent without custom element registry attribute (scoped registry) appended to new document
  14. Global registry element with declarative shadow root parent without custom element registry attribute appended to new document
  15. Global registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
  16. Global registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
  17. Global registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
  18. Global registry element with imperative shadow root parent (null registry) appended to new document
  19. Global registry element with imperative shadow root parent (global registry) appended to new document
  20. Global registry element with imperative shadow root parent (scoped registry) appended to new document
  21. Scoped registry element with element parent without custom element registry attribute (null registry) appended to new document
  22. Scoped registry element with element parent without custom element registry attribute (global registry) appended to new document
  23. Scoped registry element with element parent without custom element registry attribute (scoped registry) appended to new document
  24. Scoped registry element with declarative shadow root parent without custom element registry attribute appended to new document
  25. Scoped registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
  26. Scoped registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
  27. Scoped registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
  28. Scoped registry element with imperative shadow root parent (null registry) appended to new document
  29. Scoped registry element with imperative shadow root parent (global registry) appended to new document
  30. Scoped registry element with imperative shadow root parent (scoped registry) appended to new document
  31. Null registry element with element parent without custom element registry attribute (null registry) adopted by new document
  32. Null registry element with element parent without custom element registry attribute (global registry) adopted by new document
  33. Null registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
  34. Null registry element with declarative shadow root parent without custom element registry attribute adopted by new document
  35. Null registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
  36. Null registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
  37. Null registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
  38. Null registry element with imperative shadow root parent (null registry) adopted by new document
  39. Null registry element with imperative shadow root parent (global registry) adopted by new document
  40. Null registry element with imperative shadow root parent (scoped registry) adopted by new document
  41. Global registry element with element parent without custom element registry attribute (null registry) adopted by new document
  42. Global registry element with element parent without custom element registry attribute (global registry) adopted by new document
  43. Global registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
  44. Global registry element with declarative shadow root parent without custom element registry attribute adopted by new document
  45. Global registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
  46. Global registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
  47. Global registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
  48. Global registry element with imperative shadow root parent (null registry) adopted by new document
  49. Global registry element with imperative shadow root parent (global registry) adopted by new document
  50. Global registry element with imperative shadow root parent (scoped registry) adopted by new document
  51. Scoped registry element with element parent without custom element registry attribute (null registry) adopted by new document
  52. Scoped registry element with element parent without custom element registry attribute (global registry) adopted by new document
  53. Scoped registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
  54. Scoped registry element with declarative shadow root parent without custom element registry attribute adopted by new document
  55. Scoped registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
  56. Scoped registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
  57. Scoped registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
  58. Scoped registry element with imperative shadow root parent (null registry) adopted by new document
  59. Scoped registry element with imperative shadow root parent (global registry) adopted by new document
  60. Scoped registry element with imperative shadow root parent (scoped registry) adopted by new document
  61. Null registry element with exclusive DocumentFragment parent appended to new document
  62. Global registry element with exclusive DocumentFragment parent appended to new document
  63. Scoped registry element with exclusive DocumentFragment parent appended to new document
  64. Null registry element with exclusive DocumentFragment parent adopted by new document
  65. Global registry element with exclusive DocumentFragment parent adopted by new document
  66. Scoped registry element with exclusive DocumentFragment parent adopted by new document
scoped-registry-initialize-upgrades.html12 / 12 passingChrome 12 / 120 failedClean
Standing
Clean runner status OK
Chrome
Clean 12 / 12 WPT subtests passing runner status OK
12 passing subtests
  1. Document: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
  2. Document: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
  3. Document: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
  4. HTMLDocument: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
  5. HTMLDocument: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
  6. HTMLDocument: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
  7. XHTMLDocument: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
  8. XHTMLDocument: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
  9. XHTMLDocument: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
  10. CustomElementRegistry.prototype.initialize upgrades already initialized elements
  11. CustomElementRegistry.prototype.initialize upgrades custom elements in declarative shadow root when initialize() runs before define()
  12. CustomElementRegistry.prototype.initialize upgrades custom elements in imperative shadow root when inserted before define()
scoped-registry-initialize.html27 / 27 passingChrome 27 / 270 failedClean
Standing
Clean runner status OK
Chrome
Clean 27 / 27 WPT subtests passing runner status OK
27 passing subtests
  1. Document: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
  2. Document: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  3. Document: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
  4. Document: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
  5. Document: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
  6. Document: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
  7. Document: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
  8. Document: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  9. Document: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
  10. HTMLDocument: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
  11. HTMLDocument: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  12. HTMLDocument: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
  13. HTMLDocument: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
  14. HTMLDocument: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
  15. HTMLDocument: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
  16. HTMLDocument: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
  17. HTMLDocument: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  18. HTMLDocument: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
  19. XHTMLDocument: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
  20. XHTMLDocument: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  21. XHTMLDocument: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
  22. XHTMLDocument: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
  23. XHTMLDocument: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
  24. XHTMLDocument: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
  25. XHTMLDocument: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
  26. XHTMLDocument: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
  27. XHTMLDocument: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
scoped-registry-registry-define-get-etc.html7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. Custom element registries with a registered custom element return the class in their get method, and the name in their getName method
  2. Scoped Custom element registries do not inherit names or classes from the global registry
  3. Scoped Custom element registries return the same constructor when it is defined in both
  4. Scoped Custom element registries allow registering name that exists in global registry
  5. Custom element registries with a registered custom element resolve the class in their whenDefined method
  6. Scoped Custom element registries resolve the same constructor from whenDefined when it is defined in both
  7. Scoped Custom element registry getters do not resolve globally registered classes from whenDefined
template.window.js10 / 10 passingChrome 10 / 100 failedClean
Standing
Clean runner status OK
Chrome
Clean 10 / 10 WPT subtests passing runner status OK
10 passing subtests
  1. shadowRootCustomElementRegistry reflects as string
  2. Serializing a null registry ShadowRoot with a global registry host (document)
  3. Serializing a global registry ShadowRoot with a global registry host (document)
  4. Serializing a scoped registry ShadowRoot with a global registry host (document)
  5. Serializing a null registry ShadowRoot with a null registry host (document)
  6. Serializing a scoped registry ShadowRoot with a null registry host (document)
  7. Serializing a null registry ShadowRoot with a scoped registry host (document)
  8. Serializing a scoped registry ShadowRoot with a scoped registry host (document)
  9. A declarative shadow root gets its default registry from its node document
  10. Custom element upgrades inside a declarative shadow root parsed via template.setHTMLUnsafe()
upgrade.html5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. Upgrading an element directly (example from the spec)
  2. Two elements as children of the upgraded node
  3. Two elements as descendants of the upgraded node
  4. Two elements as shadow-including descendants (and not descendants) of the upgraded node
  5. Elements inside a template contents DocumentFragment node
valid-custom-element-names.html1,975 / 1,975 passingChrome 1,975 / 1,9750 failedClean
Standing
Clean runner status OK
Chrome
Clean 1,975 / 1,975 WPT subtests passing runner status OK

1,975 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.