feature: Interaction media features status: caution tags: polyfill kind: css polyfillurls: mq4-hover-shim moreurl: http://www.jordanm.co.uk/post/66660448615/potential-use-cases-for-script-hover-and-pointer
The Media Queries Level 4 Working Draft adds new media query features for checking whether the user's input mechanisms support hovering (hover
and any-hover
) and how accurate they are (pointer
and any-pointer
).
The usage of polyfills is strongly recommended due to the current level of browser support (Edge, Chrome 41+, Opera 28+, and Safari 9 at the time of writing).
mq4-hover-shim provides support in non-bleeding-edge browsers for detecting the primary pointer's ability to hover or not (i.e. the (hover: hover)
media query).