interop icon indicating copy to clipboard operation
interop copied to clipboard

/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html should allow interleaved pointer and compatibility mouse events

Open lilyspiniolas opened this issue 1 year ago • 3 comments

Test List

https://wpt.fyi/results/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html?label=experimental&label=master&aligned

Rationale

The test currently checks for an array of four events in a specific order (2 pointer events followed by 2 mouse events) but according to https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-events:

At a high level, compatibility mouse events are intended to be "interleaved" with their respective pointer events. However, this specific order is not mandatory, and user agents that implement compatibility mouse events MAY decide to delay or group the dispatch of mouse events, as long as their relative order is consistent.

The test currently fails for the intended (but not required) interleaved order of events, and should be updated to allow for the correct events to occur in any order.

lilyspiniolas avatar Jul 30 '24 21:07 lilyspiniolas

cc @mustaqahmed @flackr @edgarchen @smaug---- @masayuki-nakano

nt1m avatar Jul 30 '24 22:07 nt1m

Yes the asserts should have allowed interleaving. Thanks for spotting this.

FYI: in pointerevent_support.js, we have the utility method arePointerEventsBeforeCompatMouseEvents() that checks proper interleaving.

mustaqahmed avatar Jul 31 '24 13:07 mustaqahmed

PR which resolves this issue: https://github.com/web-platform-tests/wpt/pull/47395

lilyspiniolas avatar Jul 31 '24 20:07 lilyspiniolas

Closing this issue now that https://github.com/web-platform-tests/wpt/pull/47395 has merged.

aprotyas avatar Aug 21 '24 19:08 aprotyas