Created
February 12, 2015 02:39
-
-
Save isaacrankin/40a73ac3d3fa91625a86 to your computer and use it in GitHub Desktop.
Check support for CSS background-blend-modes
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
// 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