@supports enables feature queries so modern enhancements can be gated without breaking older environments.
Feature query pattern
.cards { display: block; }\n@supports (display: grid) {\n .cards { display: grid; }\n}
Important interview questions and answers
- Q: Why use @supports?
A: Progressive enhancement with graceful fallback behavior. - Q: Difference from media query?
A: Media queries target environment/device features; supports queries target CSS feature support. - Q: Common misuse?
A: Gating critical baseline behavior behind supports with no fallback.
Tip: Use fr units and gap instead of margin hacks between tracks.