Skip to content

Commit

Permalink
Merge pull request Modernizr#376 from Calvein/master
Browse files Browse the repository at this point in the history
Added test for  cubic-bezier() values > 1
  • Loading branch information
paulirish committed Sep 16, 2011
2 parents 2ae4833 + 694c035 commit 6900978
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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;
});

0 comments on commit 6900978

Please sign in to comment.