At-rules control stylesheet structure and conditional behavior such as media queries, keyframes, supports, and font-face.
Common at-rules
@media,@supports@keyframes,@font-face@import(use cautiously)
Important interview questions and answers
- Q: Why avoid heavy @import chains?
A: Can complicate loading performance and dependency tracing. - Q: @supports role?
A: Progressive enhancement based on feature capability. - Q: @keyframes use case?
A: Defining multi-step animation states.
Practice: Change one property in the playground and observe cascade + layout in DevTools.