Utilities ~ Features
image
Feature Detection

Silva uses a custom build of the best practise Modernizr tool to detect features and capabilities of devices and browsers, allowing you to respond to them in CSS or JS.

Intro

Modernizr is used to detect browser and device features. Live output for your current browser:

d

The above booleans can be used in JS and CSS to implement progressive enhancement based on features. Custom features tests are managed in js/modernizr-custom-tests.js.

The future of feature detection

With the wide availability of the web standard @supports, it is expected that soon Modernizr is no longer needed for basic feature detection.