I'd like to determine if a browser supports a particular media query via Javascript.
For example does the browser support hover detection?
CSS.supports('@media ((hover: hover)');
// false
^ This syntax does not work.
Even though the browser can actually use @media ((hover: hover)
:
window.matchMedia('(hover: hover)').matches;
// true
Can anyone describe the syntax for using CSS.supports with media queries? Or show a different way to determine specific media query support via Javascript?