How Modernizr detects features
masterModernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser. It makes detection results available in two ways:
- Global Object: As properties on a global
Modernizrobject. - HTML Classes: As classes on the
<html>element.
This allows for progressive enhancement by providing granular control over the user experience based on browser capabilities.