Last active
February 2, 2016 16:27
-
-
Save mminguezz/2e8a9e7b87c71a9ec861 to your computer and use it in GitHub Desktop.
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
function isStyleSupported(el, property) { | |
return el.style[property] != undefined; | |
} | |
var testEl = document.getElementById('test'); | |
testEl.innerHTML = (isStyleSupported(testEl, 'flexWrap')) ? "Flex Wrap is supported" : "Flex Wrap is NOT supported"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment