UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

23 lines (20 loc) 527 B
/*! { "name": "style[scoped]", "property": "stylescoped", "caniuse": "style-scoped", "tags": ["dom"], "authors": ["@alrra"], "notes": [{ "name": "W3C spec", "href": "http://www.w3.org/TR/html5/the-style-element.html#attr-style-scoped" }], "polyfills": ["scoped-styles"] } !*/ /* DOC Support for the `scoped` attribute of the `<style>` element. */ define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { Modernizr.addTest('stylescoped', 'scoped' in createElement('style')); });