Closed Bug 1644516 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 24066 - New declarative Shadow DOM test to make sure template moves work

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonfreed@chromium.org> wrote:

New declarative Shadow DOM test to make sure template moves work

This is just a test, which moves the \<template shadowroot> node to a
new host during parsing, and makes sure that (per spec [1]) it gets
attached to the correct (old) host once the closing \</template> is
found.

In the spec, see 12.2.6.4.4 The "in head" insertion mode, under
"An end tag whose tag name is "template", step 5:
Let the declarative shadow host element be equal to the adjusted
current node.

I.e. the shadow root is attached to the parent element from the
element stack, not the current parent in the DOM tree.

[1] https://whatpr.org/html/5465/parsing.html#parsing-main-inhead

Bug: 1042130
Change-Id: I31be0efea5d18d402df4c6e3bbd88ca029f69488
Reviewed-on: https://chromium-review.googlesource.com/2237881
WPT-Export-Revision: ce2818810aaa4ad7978f89d429721cf9b9378f20

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

CI Results

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

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 2

Chrome

OK : 1
PASS: 2
FAIL: 1

Safari

OK : 1
PASS: 1
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/shadow-dom/declarative/move-template-before-closing-tag.html
Moving the template node during parsing should attach to initial parent (content after observer): FAIL (Chrome: PASS, Safari: FAIL)
Moving the template node during parsing should attach to initial parent (content before observer): FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/13a74e4c1794 [wpt PR 24066] - New declarative Shadow DOM test to make sure template moves work, a=testonly https://hg.mozilla.org/integration/autoland/rev/8bccee19ac51 [wpt PR 24066] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.