CSSRule interface. Please refer to the blog post to read more, or see a working example.
To use the method, simply provide a string of the CSS at-rule:
// is the @keyframes rule supported isAtRuleSupported('@keyframes'); // is the @font-face rule supported isAtRuleSupported('@font-face'); // is the @supports rule supported isAtRuleSupported('@supports');
The function will return true for supported at-rules, false for unsupported at-rules, and undefined for browsers that do not support the
- Chrome *
- Firefox *
- Opera *
- Safari *
- Internet Explorer 9+
- Android *
- iOS *
This project is dedicated to the public domain as described by the Unlicense.