Web platform features explorer

CSS.supports()

Widely available since 2022-07-15
Tags: api Groups: CSS

The CSS.supports() static method returns whether the browser supports a CSS declaration (given by two arguments, a property and value) or an @supports at-rule condition string.

Learning resources on MDN

Browser support (view on caniuse.com)