3 ], function( document ) {
7 var cssPrefixes = [ "Webkit", "Moz", "ms" ],
8 emptyStyle = document.createElement( "div" ).style,
11 // Return a vendor-prefixed property or undefined
12 function vendorPropName( name ) {
14 // Check for vendor prefixed names
15 var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
16 i = cssPrefixes.length;
19 name = cssPrefixes[ i ] + capName;
20 if ( name in emptyStyle ) {
26 // Return a potentially-mapped vendor prefixed property
27 function finalPropName( name ) {
28 var final = vendorProps[ name ];
33 if ( name in emptyStyle ) {
36 return vendorProps[ name ] = vendorPropName( name ) || name;