[pointerevents] Specify the arguments of initMouseEvent() (#606)

foolip has just created a new issue for https://github.com/w3c/pointerevents:

== Specify the arguments of initMouseEvent() ==
https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers

Combining Blink and Gecko's IDL would give us something like this:

```WebIDL
void initMouseEvent(DOMString type,
                    optional boolean bubbles = false,
                    optional boolean cancelable = false,
                    optional Window? view = null,
                    optional long detail = 0,
                    optional long screenX = 0,
                    optional long screenY = 0,
                    optional long clientX = 0,
                    optional long clientY = 0,
                    optional boolean ctrlKey = false,
                    optional boolean altKey = false,
                    optional boolean shiftKey = false,
                    optional boolean metaKey = false,
                    optional short button = 0,
                    optional EventTarget? relatedTarget = null);
```

(It would also be good to spell out that removal is not on the table. HTML calls such things [obsolete](https://html.spec.whatwg.org/multipage/obsolete.html) instead of deprecated, which is more in line with how deprecation is used in at least Blink.)

Similar to https://github.com/w3c/uievents/issues/133 and https://github.com/w3c/uievents/issues/134. See also https://github.com/whatwg/dom/issues/387.

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/606 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 12 January 2026 22:04:13 UTC