I want to check whether the CSS property pointer-events (see documentation) is supported by the user’s browser.
Currently, for example, it’s not supported by Opera and I believe some versions of IE.
I’d like to run a check in JavaScript and display appropriate bits of HTML depending on whether or not it’s supported.
Is there a better way to do this than checking the user-agent string?
I think
or
should be adequate in the case of SVG content.