Closed Bug 1895777 Opened 9 months ago Closed 9 months ago

[wpt-sync] Sync PR 46171 - add test for shadowroots falling back to global scope

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 46171 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/46171
Details from upstream follow.

Keith Cirkel <keithamus@users.noreply.github.com> wrote:

add test for shadowroots falling back to global scope

Following discussions with the WCCG it was deemed undesirable that Scoped Custom Element Registries fall back to the global registry if undefined. If scoped registries desire such a behaviour they can collect the definitions from the global registry and apply them to the local registry.

This test fails in Chrome because it defines the alternate behaviour where the registry does fall back. Scoped registries are a prototype feature without a spec and so this feels like a good feedback channel for the WCCG to validate their desires and the interpretations of the explainer.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
FAIL: 5

Chrome

OK : 1
PASS: 4
FAIL: 1

Safari

OK : 1
FAIL: 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /custom-elements/scoped-registry/ShadowRoot-innerHTML-upgrade.tentative.html [wpt.fyi]
    • Upgrade into autonomous custom element when inserted via innerHTML: FAIL (Chrome: PASS, Safari: FAIL)
    • Upgrade into autonomous custom element when definition is added: FAIL (Chrome: PASS, Safari: FAIL)
    • Upgrade into customized built-in element when inserted via innerHTML: FAIL (Chrome: PASS, Safari: FAIL)
    • Upgrade into customized built-in element when definition is added: FAIL (Chrome: PASS, Safari: FAIL)
    • Upgrade into autonomous custom element should not inherit from global registry for missing values: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd7747484792 [wpt PR 46171] - add test for shadowroots falling back to global scope, a=testonly https://hg.mozilla.org/integration/autoland/rev/6b2ba641fe1c [wpt PR 46171] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.