From 694c035baf5e4b298cdab985b86e47d8670828d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Robichet?= Date: Fri, 16 Sep 2011 12:52:00 +0000 Subject: [PATCH] Added cubicbezierrange --- feature-detects/css-cubicbezierrange.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 feature-detects/css-cubicbezierrange.js diff --git a/feature-detects/css-cubicbezierrange.js b/feature-detects/css-cubicbezierrange.js new file mode 100644 index 0000000000..4b955bbf51 --- /dev/null +++ b/feature-detects/css-cubicbezierrange.js @@ -0,0 +1,8 @@ +// cubic-bezier values can't be > 1 for Webkit until bug #45761 (https://bugs.webkit.org/show_bug.cgi?id=45761) is fixed +// By @calvein + +Modernizr.addTest('cubicbezierrange', function() { + el = document.createElement('div'); + el.style.cssText = Modernizr._prefixes.join('transition-timing-function' + ':cubic-bezier(1,0,0,1.1); '); + return el.style.length; +}); \ No newline at end of file