will-change.js 442 B

1234567891011121314151617
  1. /*!
  2. {
  3. "name": "will-change",
  4. "property": "willchange",
  5. "notes": [{
  6. "name": "W3C Spec",
  7. "href": "https://drafts.csswg.org/css-will-change/"
  8. }]
  9. }
  10. !*/
  11. /* DOC
  12. Detects support for the `will-change` css property, which formally signals to the
  13. browser that an element will be animating.
  14. */
  15. define(['Modernizr', 'docElement'], function(Modernizr, docElement) {
  16. Modernizr.addTest('willchange', 'willChange' in docElement.style);
  17. });