diff options
author | Andrei Volykhin <andrei.volykhin@gmail.com> | 2025-04-02 14:20:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 11:20:25 +0000 |
commit | 3bc0eeab8f70bab8b4a1998b5d4c636a9cbfd552 (patch) | |
tree | 2c1ae41d10c0b058d2f3349c43545fd0de44e8ca /components/script/dom/webxr/xrinputsourceevent.rs | |
parent | b925c3142407f977cd77b695b750177a9eaf940d (diff) | |
download | servo-3bc0eeab8f70bab8b4a1998b5d4c636a9cbfd552.tar.gz servo-3bc0eeab8f70bab8b4a1998b5d4c636a9cbfd552.zip |
dom: Firing "click" event as synthetic pointer event (#36274)
According to specification
https://html.spec.whatwg.org/multipage/webappapis.html#fire-a-click-event
"Firing a click event at target means firing a synthetic pointer event
named click at target"
So need to replace synthetic mouse event with "click" type to pointer
event.
https://w3c.github.io/pointerevents/#the-click-auxclick-and-contextmenu-events
https://www.w3.org/TR/uievents/#event-type-click
Firing "click" event could be triggered from script or by UA:
- element.click()
(https://html.spec.whatwg.org/multipage/interaction.html#dom-click)
- form implicit submission
(https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission)
- keyboard activation (space)
---
- [x] ./mach build -d does not report any errors
- [x] ./mach test-tidy does not report any errors
- [x] There are tests for these changes
tests/wpt/tests/shadow-dom/event-composed.html
tests/wpt/tests/uievents/interface/click-event.htm
Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
Diffstat (limited to 'components/script/dom/webxr/xrinputsourceevent.rs')
0 files changed, 0 insertions, 0 deletions