Lea Verou 5/2/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

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser