mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
19 lines
470 B
JavaScript
19 lines
470 B
JavaScript
/*!
|
|
{
|
|
"name": "will-change",
|
|
"property": "willchange",
|
|
"caniuse": "will-change",
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://drafts.csswg.org/css-will-change/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the `will-change` css property, which formally signals to the
|
|
browser that an element will be animating.
|
|
*/
|
|
define(['Modernizr', 'docElement'], function(Modernizr, docElement) {
|
|
Modernizr.addTest('willchange', 'willChange' in docElement.style);
|
|
});
|