[wpt-sync] Sync PR 24066 - New declarative Shadow DOM test to make sure template moves work
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
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
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
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
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)
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/13a74e4c1794
https://hg.mozilla.org/mozilla-central/rev/8bccee19ac51
Description
•