Permalink
Browse files

Feature detect for the @supports At-rule, fixes #648

  • Loading branch information...
1 parent d029c7e commit ef1a8565af34cdea445db413e2655f18ae677f26 @ryanseddon ryanseddon committed Aug 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 feature-detects/css-supports.js
View
6 feature-detects/css-supports.js
@@ -0,0 +1,6 @@
+// http://dev.w3.org/csswg/css3-conditional/#at-supports
+// github.com/Modernizr/Modernizr/issues/648
+// Relies on the fact that a browser vendor should expose the CSSSupportsRule interface
+// http://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface
+
+Modernizr.addTest("supports","CSSSupportsRule" in window);

0 comments on commit ef1a856

Please sign in to comment.