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