d
Amit DhamuSoftware Engineer
 

Detect CSS Property

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

isPropertySupported('opacity')

Credits