var d = document.documentElement.style if (('flexWrap' in d) || ('WebkitFlexWrap' in d) || ('msFlexWrap' in d)){ alert('ok'); }