mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Explicitly expose MouseEvent only in Window
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://w3c.github.io/uievents/#interface-mouseevent
|
||||
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict)]
|
||||
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict),
|
||||
Exposed=Window]
|
||||
interface MouseEvent : UIEvent {
|
||||
readonly attribute long screenX;
|
||||
readonly attribute long screenY;
|
||||
|
||||
Reference in New Issue
Block a user