Skip to content

Commit

Permalink
Capitalizing Vendor keywords, fixes http://github.com/Modernizr/Moder…
Browse files Browse the repository at this point in the history
  • Loading branch information
Faruk Ates authored and Faruk Ates committed Jan 26, 2010
1 parent d8fac86 commit e3f5d30
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modernizr.js
Expand Up @@ -2,7 +2,7 @@
* Modernizr JavaScript library 1.1
* http://modernizr.com/
*
* Copyright (c) 2009 Faruk Ates - http://farukat.es/
* Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
* Licensed under the MIT license.
* http://modernizr.com/license/
*
Expand All @@ -24,7 +24,7 @@
* control over the look and feel of your website.
*
* @author Faruk Ates
* @copyright (2009) Faruk Ates.
* @copyright (2009-2010) Faruk Ates.
*
* @contributor Paul Irish
* @contributor Ben Alman
Expand Down Expand Up @@ -230,10 +230,9 @@ window.Modernizr = (function(window,doc,undefined){
var uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1),
props = [
prop,
'webkit' + uc_prop,
'Webkit' + uc_prop,
'Moz' + uc_prop,
'moz' + uc_prop,
'o' + uc_prop,
'O' + uc_prop,
'ms' + uc_prop
];

Expand Down Expand Up @@ -427,13 +426,13 @@ window.Modernizr = (function(window,doc,undefined){
tests[csstransforms] = function() {
// set_css_all( 'transform:rotate(3deg)' );

return !!test_props([ 'transformProperty', 'webkitTransform', 'MozTransform', 'mozTransform', 'oTransform', 'msTransform' ]);
return !!test_props([ 'transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform' ]);
};

tests[csstransforms3d] = function() {
// set_css_all( 'perspective:500' );

var ret = !!test_props([ 'perspectiveProperty', 'webkitPerspective', 'MozPerspective', 'mozPerspective', 'oPerspective', 'msPerspective' ]);
var ret = !!test_props([ 'perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective' ]);

// webkit has 3d transforms disabled for chrome and safari, though
// it works fine in webkit nightly on (snow) leopard.
Expand Down

0 comments on commit e3f5d30

Please sign in to comment.