Created
September 28, 2016 14:35
-
-
Save markhowellsmead/5f8360c99b22b86f1dc6eae164583014 to your computer and use it in GitHub Desktop.
Detect browser support for CSS' mix-blend-mode using JavaScript
This file contains 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
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