Use @supports At-Rule for Feature Detection in CSS @CSSWeekly
Use @supports At-Rule for Feature Detection in CSS  @CSSWeekly
Uploaded May 2022 | Updated September 2026, 1 week ago
Learn how to detect browser feature support in CSS using @supports at-rule.

πŸ”₯ How :has() parent selector works: youtu.be/OqLquBs-bEg πŸ”₯

πŸ“š Resources
Codepen Demo: codepen.io/ZoranJambor/pen/abqJXOX/e56a93dadad8a195726bfa78efe1a801
Supports at-rule on MDN: developer.mozilla.org/en-US/docs/Web/CSS/@supports

πŸ“– Chapters
00:00 Introduction
00:11 Why you should use feature detection
00:39 How @supports at-rule works
01:42 How to check browsers feature support on caniuse.com
02:26 How "not" keyword in @supports works
02:48 How "and" and "or" operators in @supports work
03:51 How to nest @supports rules
04:15 How to nest @supports directly within selectors in Sass
04:49 How to test support for CSS Custom Properties
05:12 How to test for selector and pseudo-classes support
05:55 How to test for at-rules support (@layer, @scope)
06:39 How to use @supports feature detection in JavaScript
07:16 Conclusion

Subscribe to CSS Weekly Newsletter:
πŸ’Œ css-weekly.com

Keep up-to-date with CSS Weekly:
πŸ‘‰ Twitter: twitter.com/CSSWeekly
πŸ‘‰ Instagram: instagram.com/cssweekly
πŸ‘‰ Facebook: facebook.com/CSSWeekly

Keep up to date with what I'm up to:
πŸ”— Blog: zoranjambor.com
πŸ‘‰ Twitter: twitter.com/zoranjambor
πŸ‘‰ LinkedIn: linkedin.com/in/zoranjambor

- Zoran Jambor
#css
Use @supports At-Rule for Feature Detection in CSSStart Using Minimap Section Headers in VS CodeA New Alternative to the CSS Owl SelectorHow to create the YouTube like-button glow effect when you say β€œsubscribe” in a videoChrome DevTools Tips: Target Recent Elements in ConsoleCSS display is Multi-Keyword Property β€” What You Need To KnowHow to Build Stunning Websites Easily Using BeTheme and Its Powerful Developer FeaturesChrome DevTools Tips - How to easily revert all CSS changes in Styles PaneHow To Create a User-Friendly Booking Solution Using Amelia WordPress PluginTop 11 Visual Studio Code Themes You Should Try TodayChatGPT Can Write Good CSS?!?How To Animate a Button Based on Video Content (YouTube Button Subscribe Animation)
CSS Weekly |

Use @supports At-Rule for Feature Detection in CSS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER