Permalink
Browse files

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

  • Loading branch information...
1 parent 3ec7d18 commit 2e33ef9903c1ce4aacea306b189182467172dea6 @phistuck phistuck committed Aug 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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 2e33ef9

Please sign in to comment.