[wpt-sync] Sync PR 46848 - Correct expectations for pointerevents after slot changes.
Categories
(Core :: DOM: Events, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 46848 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/46848
Details from upstream follow.
Mustaq Ahmed <mustaq@google.com> wrote:
Correct expectations for pointerevents after slot changes.
These 3 points were missed previously:
- The mouse pointer moves off from the
shadow_host
to clickdone
.- After
slot
removal, theslotted_child
remains un-rendered and
also doesn't appear in theparent.children
list. So the
slotted_child
is effectively disconnected therefore not expected
to receive any following event. Firefox behaves this way too.- The down/up events at
parent
are also dispatched toshadow_root
.
Both Chrome and Firefox behaves this way.Manual test link: https://codepen.io/mustaqahmed/full/BaeRvdZ
Existing WPT outcome: https://wpt.fyi/results/pointerevents/pointerevent_after_target_removed_from_slot.html%3Fmouse?label=experimental&label=master&alignedBug: 40156858
Change-Id: I7d9f50c7732b0dc81887dce86a323685b46fab17Reviewed-on: https://chromium-review.googlesource.com/5640796
WPT-Export-Revision: 3ac53e58fa7d0247ceb825de2f5b7c6cc8089c7d
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 1•3 months ago
|
||
Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 4
Chrome
OK
: 1
FAIL
: 4
Safari
OK
: 1
FAIL
: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /pointerevents/pointerevent_after_target_removed_from_slot.html?mouse [wpt.fyi]
- Pointer events from mouse received before/after slot removal at pointerdown:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Pointer events from mouse received before/after slotted-child removal at pointerdown:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Pointer events from mouse received before/after slot removal at pointerup:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Pointer events from mouse received before/after slotted-child removal at pointerup:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Pointer events from mouse received before/after slot removal at pointerdown:
Comment 4•3 months ago
|
||
bugherder |
Description
•