Modernizr detects whether the current browser supports CSS3 features like @font-face, border-radius, box-shadow and so forth, as well as HTML5 features like localStorage, and the new <input> element types and attributes.