MediaQueryList
Generated from idl/uievents.webidl when the site was built at 7aa23e2.
MediaQueryList is an interface in idl/uievents.webidl, inheriting EventTarget, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| matchMedia | Widely available | Partial 40% 43 of 106 subtests pass | 4 |
Members
Section titled “Members”readonly attribute DOMString media;int32_t niso_media_query_list_get_media(niso_dom* dom, niso_handle self, niso_str* out);matches
Section titled “matches”readonly attribute boolean matches;int32_t niso_media_query_list_get_matches(niso_dom* dom, niso_handle self, bool* out);addListener()
Section titled “addListener()”undefined addListener(EventListener? callback);int32_t niso_media_query_list_add_listener(niso_dom* dom, niso_handle self, niso_event_listener_fn callback_fn, void* callback_userdata, niso_drop_fn callback_drop);removeListener()
Section titled “removeListener()”undefined removeListener(EventListener? callback);int32_t niso_media_query_list_remove_listener(niso_dom* dom, niso_handle self, niso_event_listener_fn callback_fn, void* callback_userdata, niso_drop_fn callback_drop);onchange
Section titled “onchange”attribute EventHandler onchange;int32_t niso_media_query_list_get_onchange(niso_dom* dom, niso_handle self, void** out);int32_t niso_media_query_list_set_onchange(niso_dom* dom, niso_handle self, niso_event_handler_non_null_fn value_fn, void* value_userdata, niso_drop_fn value_drop);Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
EventTarget_inheritance(matchMedia)