Skip to content

Files

Latest commit

Feb 28, 2019
68291e1 · Feb 28, 2019

History

History
12 lines (9 loc) · 1.14 KB

interaction-media-features.md

File metadata and controls

12 lines (9 loc) · 1.14 KB

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).