Skip to content

Instantly share code, notes, and snippets.

@antidis
Created July 13, 2010 11:13
Show Gist options
  • Save antidis/473739 to your computer and use it in GitHub Desktop.
Save antidis/473739 to your computer and use it in GitHub Desktop.
// Detect CSS mask support and hack it into Modernizr
if ( document.body.style[ '-webkit-mask-repeat' ] !== 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