interface Window { }; interface Event { }; dictionary EventInit { };
partial interface Window { attribute EventHandler ondevicelight; }; dictionary DeviceLightEventInit : EventInit { unrestricted double value; }; [Constructor (DOMString type, optional DeviceLightEventInit eventInitDict)] interface DeviceLightEvent : Event { readonly attribute unrestricted double value; };