Fix pointerevent_after_target_removed_from_slot.html asserts #55894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
hostcontaining the shadow-root containingparentcontaining
slotin whichchildis placed;childremains hidden asa a sibling of the shadow-root until placed in
slot.slotreturnschildback to the hidden position.childexposes the subtree ofslot.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}