Gets the current value of a style property for a given DOM element.