Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 6, 2025

This CL updates the test its and expectations to match the event hittest
behavior in practice after either the slot or the element placed in the
slot is removed. To avoid boundary event complications caused by layout
changes, all relevant elements are made same sized.

The expectations are written based on the following observations: each
test starts with host containing the shadow-root containing parent
containing slot in which child is placed; child remains hidden as
a a sibling of the shadow-root until placed in slot.

  • Removing slot returns child back to the hidden position.
  • Removing child exposes the subtree of slot.

Manual testing: https://codepen.io/mustaqahmed/full/LEGgpMQ

Bug: 404479707
Change-Id: I2ce50112f7f1bdb2a4cb6417e7477f59be5e1b89
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7107458
Reviewed-by: Robert Flack <[email protected]>
Commit-Queue: Mustaq Ahmed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1541198}

This CL updates the test its and expectations to match the event hittest
behavior in practice after either the slot or the element placed in the
slot is removed. To avoid boundary event complications caused by layout
changes, all relevant elements are made same sized.

The expectations are written based on the following observations: each
test starts with `host` containing the shadow-root containing `parent`
containing `slot` in which `child` is placed; `child` remains hidden as
a a sibling of the shadow-root until placed in `slot`.
- Removing `slot` returns `child` back to the hidden position.
- Removing `child` exposes the subtree of `slot`.

Manual testing: https://codepen.io/mustaqahmed/full/LEGgpMQ

Bug: 404479707
Change-Id: I2ce50112f7f1bdb2a4cb6417e7477f59be5e1b89
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7107458
Reviewed-by: Robert Flack <[email protected]>
Commit-Queue: Mustaq Ahmed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1541198}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit a9f4351 into master Nov 6, 2025
26 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7107458 branch November 6, 2025 15:39
mishtiagrawal02-cloud pushed a commit to mishtiagrawal02-cloud/wpt that referenced this pull request Dec 27, 2025
…-tests#56614

This PR adds 13 comprehensive documentation files (~40k words) that explain
the resolution to GitHub issue web-platform-tests#56614: 'Expectations in
pointerevent_after_target_removed_from_slot.html'

## Documentation Includes:

**Quick Start Guides:**
- 00_START_HERE.md: Master summary and navigation
- QUICK_COMMANDS.md: Copy-paste terminal commands for PR submission
- QUICK_REFERENCE.md: Q&A, troubleshooting, and quick lookup

**Comprehensive Learning:**
- POINTER_EVENTS_FIX_SUMMARY.md: Technical overview of the fix
- DETAILED_ANALYSIS.md: In-depth analysis of the problem
- COMPLETE_SOLUTION.md: Full explanation of all aspects
- SOLUTION_COMPLETE.md: Complete solution overview

**Contributing & Guidance:**
- HOW_TO_CREATE_PR.md: Step-by-step PR creation guide
- PULL_REQUEST_GUIDE.md: Contributing patterns to WPT
- GITHUB_ISSUE_GUIDE.md: How to file and reference issues
- PR_SUBMISSION_GUIDE.md: Complete PR submission workflow
- README_DOCUMENTATION.md: Documentation index and navigation
- INDEX_AND_SUMMARY.md: Quick reference index

## What This Explains:

✅ The original issue with pointer events in shadow DOM
✅ Why tests were failing in all browsers
✅ How the fix aligns with W3C specifications
✅ Three test scenarios: remove-slot, remove-filler, change-slotname
✅ Event retargeting and boundary event behavior
✅ Privacy implications of relatedTarget
✅ How to understand and extend these concepts
✅ Step-by-step guides for contributors

## Related Issues:
- Fixes web-platform-tests#56614
- References commit a9f4351 (the actual fix)
- PR web-platform-tests#55894 (original PR that fixed the issue)

## For Reviewers:

These docs are reference material to help:
- New contributors understand pointer events
- Developers debug similar shadow DOM issues
- Teams understand spec-compliant event dispatch
- Future maintainers understand the fix rationale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants