[wpt-sync] Sync PR 23181 - Adds slotchange event for Imperative Slot API.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 23181 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/23181
Details from upstream follow.
Yu Han <yuzhehan@chromium.org> wrote:
Adds slotchange event for Imperative Slot API.
Prior to this CL slotchange event is not fired when calling the
Imperative Slot API.This CL adds the ability to fire slotchange event for Imperative Slot
API. It does so by detecting candidates nodes changed during the
call and fires slotchange event if changed. This CL only implements the
assign() function's portion of the slotchange event. In the next CL,
I will implement slotchange event for removing nodes and slots.Bug:869308
Change-Id: I13851d1788fc6cf8b0ea109fb136a2f029e61e70Reviewed-on: https://chromium-review.googlesource.com/2161369
WPT-Export-Revision: efd0cbff9409da3bd51eb1d8cf03076861a51e64
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 13 Firefox configurations based on mozilla-central, and Safari on GitHub CI
Total 68 tests
Status Summary
Firefox
OK : 1
PASS: 67
FAIL: 7
Safari
OK : 1
FAIL: 7
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/shadow-dom/slots-imperative-api-slotchange.tentative.html
slotchange event must not fire synchronously.: FAIL (Safari: FAIL)
Fire slotchange event when order of assigned nodes changes.: FAIL (Safari: FAIL)
slotchange event should not fire when assignments do not change assignedNodes.: FAIL (Safari: FAIL)
Fire slotchange event when slot's assigned nodes changes.: FAIL (Safari: FAIL)
Fire slotchange event on previous slot and new slot when node is reassigned.: FAIL (Safari: FAIL)
slotchange event should not fire when same node is assigned.: FAIL (Safari: FAIL)
Fire slotchange event on node assignment and when assigned node is removed.: FAIL (Safari: FAIL)
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cf4b06c05ed3
https://hg.mozilla.org/mozilla-central/rev/ce8be6807244
Description
•