mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 15:41:05 +00:00
21 lines
517 B
JavaScript
21 lines
517 B
JavaScript
/*!
|
|
{
|
|
"name": "Shadow DOM API",
|
|
"property": "shadowroot",
|
|
"caniuse": "shadowdomv1",
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot"
|
|
}],
|
|
"authors": ["Kevin Coyle (@kevin-coyle-unipro)", "Pascal Lim (@pascalim)"],
|
|
"tags": ["dom"]
|
|
}
|
|
!*/
|
|
|
|
/* DOC
|
|
Detects support for the Shadow DOM API.
|
|
*/
|
|
define(['Modernizr', 'createElement'], function (Modernizr, createElement) {
|
|
Modernizr.addTest('shadowroot', 'attachShadow' in createElement('div'));
|
|
});
|