Last active
January 6, 2016 00:58
-
-
Save julzmon/1cbeb163877fa263b708 to your computer and use it in GitHub Desktop.
Check for flexbox
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
var doc = document.body || document.documentElement; | |
var style = doc.style; | |
if ( style.webkitFlexWrap == '' || | |
style.msFlexWrap == '' || | |
style.flexWrap == '' ) { | |
doc.className += " supports-flex"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment