October 23, 2016
Stu Cox explains that there are a ton of ways you might think you can get a yes-or-no answer on whether a browser supports touch or not:
Width media queries
Touch-related DOM events
Pointer media queries
The normal refrain around this is “there are devices that are both, so you’d be wro...
October 23, 2015
If you like playing with new features which might not be available in all browsers, you have surely already tried Modernizr. This library allows to test whether the features you want are available or not. As Modernizr adds some CSS classes on the html element to indicate if a given feature is available, you might be te...