Lea Verou 02.05.2011

Rule filtering based on specific selector(s) support

Read Original

This article explains a clever CSS technique to apply styles only in browsers that support specific selectors. It works by prepending a rule with a selector that uses the features you want to test but is guaranteed not to match any element. Browsers that don't understand the test selector will ignore the entire rule, providing a form of feature detection without @supports.

Rule filtering based on specific selector(s) support

комментариев

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet