HTML5 Please

@supports

Use with cautioncss

Feature detection has always been a good practice, but unfortunately we could only do that kind of thing using JavaScript.

Verdict
Use with caution
Category
CSS features
Browser support
Can I Use
Works in
all modern browsers

Should you use @supports in 2026?

But not anymore.

CSS Feature Queries allow authors to condition rules based on whether particular property declarations are supported in CSS using the @supports at rule.

For now it's available in FF 22+, Opera 12.1+, and Chrome 28+.