Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created September 28, 2016 14:35
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markhowellsmead/5f8360c99b22b86f1dc6eae164583014 to your computer and use it in GitHub Desktop.
Save markhowellsmead/5f8360c99b22b86f1dc6eae164583014 to your computer and use it in GitHub Desktop.
Detect browser support for CSS' mix-blend-mode using JavaScript
if (typeof window.getComputedStyle(document.body).mixBlendMode === 'undefined') {
document.documentElement.className += " mix-blend-mode-no";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment