Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ef1a8565af34cdea445db413e2655f18ae677f26 1 parent d029c7e
@ryanseddon ryanseddon authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.