mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-24 18:41:03 +00:00
17 lines
537 B
JavaScript
17 lines
537 B
JavaScript
/*!
|
|
{
|
|
"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'));
|
|
});
|