UNPKG

modernizr

Version:

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

17 lines (16 loc) 537 B
/*! { "name": "Image crossOrigin", "property": "imgcrossorigin", "notes": [{ "name": "Cross Domain Images and the Tainted Canvas", "href": "https://blog.codepen.io/2013/10/08/cross-domain-images-tainted-canvas/" }] } !*/ /* DOC Detects support for the crossOrigin attribute on images, which allow for cross domain images inside of a canvas without tainting it */ define(['Modernizr', 'createElement'], function(Modernizr, createElement) { Modernizr.addTest('imgcrossorigin', 'crossOrigin' in createElement('img')); });