aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webxr/xrinputsourceevent.rs
diff options
context:
space:
mode:
authorAndrei Volykhin <andrei.volykhin@gmail.com>2025-04-02 14:20:25 +0300
committerGitHub <noreply@github.com>2025-04-02 11:20:25 +0000
commit3bc0eeab8f70bab8b4a1998b5d4c636a9cbfd552 (patch)
tree2c1ae41d10c0b058d2f3349c43545fd0de44e8ca /components/script/dom/webxr/xrinputsourceevent.rs
parentb925c3142407f977cd77b695b750177a9eaf940d (diff)
downloadservo-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