Skip to content

Instantly share code, notes, and snippets.

@isaacrankin
Created February 12, 2015 02:39
Show Gist options
  • Save isaacrankin/40a73ac3d3fa91625a86 to your computer and use it in GitHub Desktop.
Save isaacrankin/40a73ac3d3fa91625a86 to your computer and use it in GitHub Desktop.
Check support for CSS background-blend-modes
// This could be used for detecting other things theoretically
if(!('backgroundBlendMode' in document.body.style)) {
// No support for background-blend-mode
var html = document.getElementsByTagName('html')[0];
html.className = html.className + ' no-background-blend-mode';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment