Detect CSS Property

1 minute read 00000 views javascript
function isPropertySupported(property) {
  return property in document.body.style
}

isPropertySupported('opacity')

Credits