Widely Available
id: matchmedia
matchMedia
The
window.matchMedia() method checks whether a media query applies to the document.
Baseline Status:
Achieved Widely Available on Jan 29, 2018 (Cross-browser Newly Available since Jul 29, 2015).
Desktop Browser Engine Support
Google Chrome
9
Supported
Mozilla Firefox
6
Supported
Apple Safari
5.1
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
6
Safari iOS
5
Specifications and References
MDN Browser Compat Data Keys:
api.MediaQueryList ↗
api.MediaQueryList.EventTarget_inheritance ↗
api.MediaQueryList.change_event ↗
api.MediaQueryList.matches ↗
api.MediaQueryList.media ↗
api.MediaQueryListEvent ↗
api.MediaQueryListEvent.MediaQueryListEvent ↗
api.MediaQueryListEvent.matches ↗
api.MediaQueryListEvent.media ↗
api.Window.matchMedia ↗