Skip to content

Commit

Permalink
use default styletest for transform and transform3d
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Jan 22, 2012
1 parent a1314dc commit 52c6314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,13 +582,13 @@ window.Modernizr = (function( window, document, undefined ) {


tests['csstransforms'] = function() {
return !!testProps(['transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform']);
return !!testPropsAll('transform');
};


tests['csstransforms3d'] = function() {

var ret = !!testProps(['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']);
var ret = !!testPropsAll('perspective');

// Webkit's 3D transforms are passed off to the browser's own graphics renderer.
// It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in
Expand Down

0 comments on commit 52c6314

Please sign in to comment.