-
-
Save davidrenne/09bd9e775b42a9838033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Detect CSS mask support and hack it into Modernizr | |
if ( document.body.style[ '-webkit-mask-box-image' ] !== undefined ) { | |
Modernizr.cssmasks = true; | |
$('html').addClass('cssmasks'); | |
} else { | |
Modernizr.cssmasks = false; | |
$('html').addClass('no-cssmasks'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment