You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The pointerevents spec provides a unified input model for handling pointing devices regardless of their type (e.g. mouse, touch, stylus) and contains many new capabilities to these events such as predicted points and pointer capture.
Rationale
The pointerevents spec is where new input features are arriving and developers using pointerevents instead of mouse or touch event listeners improves usability across input modalities. Additionally, using touch-action and passive event listeners improves scrolling performance. However, differences in behavior can lead to adoption or usability issues.
Note that Safari doesn't support touch events on macOS (the only platform on wpt.fyi), because macOS doesn't support touch input, as such I think we'd be opposed to including the touch action tests in this bracket. (Not making any statement about the inclusion of the rest of pointer events, just noting that there is that limitation.)
Per #39 (comment) we won't include this in Interop 2022, but before closing it we should figure out if there's something here we want to work jointly on in 2022.
@gsnedders can you elaborate on "WPT coverage does not seem representative of site compatibility bugs"? What kinds of site compat issues you tend to see with Pointer Events? Perhaps focusing on those aspects would put this in better shape for Interop 2023.
@gsnedders can you elaborate on "WPT coverage does not seem representative of site compatibility bugs"? What kinds of site compat issues you tend to see with Pointer Events? Perhaps focusing on those aspects would put this in better shape for Interop 2023.
Looking at bugs.webkit.org shows a variety of issues; these are:
Mostly touch related issues, which we don't have test coverage for WebKit on wpt.fyi due to lack of any sort of touch input on macOS, and therefore not in Safari either,
Related to browser features (like drag-to-scroll) which I don't think Pointer Events really covers?
Is this something where a different WebKit port might enable the feature on desktop, and provide a useful proxy for iOS Safari? Or is there a lot of port-specific code?
Activity
jgraham commentedon Nov 11, 2021
This is an feature where we see a relatively large number of developer-filed bug reports, indicating that it's something that people run into when creating sites (e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1529904, https://bugzilla.mozilla.org/show_bug.cgi?id=1675846, https://bugzilla.mozilla.org/show_bug.cgi?id=1695574) so I agree that this makes sense as a focus area.
gsnedders commentedon Nov 11, 2021
Note that Safari doesn't support touch events on macOS (the only platform on wpt.fyi), because macOS doesn't support touch input, as such I think we'd be opposed to including the touch action tests in this bracket. (Not making any statement about the inclusion of the rest of pointer events, just noting that there is that limitation.)
eugenegirard commentedon Nov 11, 2021
Wouldn't touch action tests get ignored for MacOS then?
flackr commentedon Nov 11, 2021
Currently they result in failures, but it could be a good goal to update the tests so that lack of touch support on the platform skips the tests.
foolip commentedon Nov 22, 2021
Looking at https://wpt.fyi/results/pointerevents?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned, some touch tests are easy to exclude, like any that have "touch" in the test name.
More problematic are any tests that use touch but don't strictly have to. In particular, test using
touchScrollInTargetwould perhaps make sense for wheel-induced scrolling, but I can't find any tests involving "wheel" in pointerevents/. Judging by https://wpt.fyi/results/webdriver/tests/perform_actions/wheel.py?run_id=5675562627497984&run_id=5653017203310592&run_id=5670493089693696 it doesn't work in geckodriver of safaridriver yet.@flackr would you be able to make a list of tests that would work without touch support, and see if that's still enough to be useful?
flackr commentedon Nov 23, 2021
@mustaqahmed Do you think you could help with this?
gsnedders commentedon Nov 29, 2021
Looking at https://wpt.fyi/results/pointerevents/idlharness.window.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&q=%21touch%20%21pen (i.e., excluding both touch and pen) we see much more green than the overall summary. Looking at idlharness:
altitudeAngle/azimuthAngleis unsupported in Gecko/WebKitgetCoalescedEvents/getPredictedEventsis unsupported in WebKitonpointerrawupdateis unsupported in Gecko/WebKitOf the above query, it seems that:
Given that, I guess the question in part becomes "do we want to exclude any tests/features that fail in two browsers?".
foolip commentedon Dec 10, 2021
Per #39 (comment) we won't include this in Interop 2022, but before closing it we should figure out if there's something here we want to work jointly on in 2022.
@gsnedders can you elaborate on "WPT coverage does not seem representative of site compatibility bugs"? What kinds of site compat issues you tend to see with Pointer Events? Perhaps focusing on those aspects would put this in better shape for Interop 2023.
gsnedders commentedon Dec 16, 2021
Looking at bugs.webkit.org shows a variety of issues; these are:
karlcow commentedon Dec 17, 2021
so checking mozilla webcompat issues related to pointer events.
jgraham commentedon Dec 17, 2021
Is this something where a different WebKit port might enable the feature on desktop, and provide a useful proxy for iOS Safari? Or is there a lot of port-specific code?
foolip commentedon Aug 18, 2022
Closing this, discussion continues in https://github.com/web-platform-tests/interop-2022-pointer.