Three media queries for advanced feature detection. Very useful; can’t wait until they’re supported.
The pointer
media query tells you if the pointer is coarse, fine, or entirely absent.
The hover
media query tells you if hovering is possible, impossible, or possible by some unusual interface (say, long-press).
The scripting
media query tells you if the scripting is enabled (enabled
), disabled (none
), or only enabled for the initial page load (initial-only
).
It should have a fourth value: server-side
, for proxy browsers that do support JavaScript but require a round-trip to the server to execute it.
The light-level
media query tells you if the light-level is enabled, disabled, or only enabled for the initial page load.