Skip to content

Instantly share code, notes, and snippets.

@davidrenne
Forked from trey/gist:1827930
Created March 23, 2015 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidrenne/09bd9e775b42a9838033 to your computer and use it in GitHub Desktop.
Save davidrenne/09bd9e775b42a9838033 to your computer and use it in GitHub Desktop.
// 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