-moz-touch-enabled media feature has been deprecated

Published: | Categories: CSS


The -moz-touch-enabled CSS media feature is now disabled in the Nightly channel as of Firefox 71, and will be removed from all channels in the near future. The standard Interaction Media Features have been supported since Firefox 64, and at least 1 site is known to be not scrollable in Firefox because of the Modernizr library’s wrong detection using the non-standard media feature, hence the deprecation.

You can now use the pointer media feature instead. For example, if you have -moz-touch-enabled:1 in your media query, simply replace it with pointer:coarse.

This is the last remaining non-standard system metric media feature in Firefox. Others had already been removed with Firefox 58.

Update: The media feature has been removed with Firefox 73.