CSS · At-rules

@supports selector()

Tests support for a selector rather than a declaration.

Syntax
@supports selector(:has(a))

Example

Try it

More in this group

@charset @color-profile @counter-style @font-feature-values @media range syntax @namespace @page @property

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course