add class for 3d transform support

This commit is contained in:
scottjehl 2012-01-04 16:49:31 +07:00
parent 0cafec13bd
commit 965f7e2681

View file

@ -87,4 +87,9 @@ if ( $.mobile.defaultTransitionHandler === $.mobile.noneTransitionHandler ) {
$.mobile.defaultTransitionHandler = outInTransitionHandler;
}
// add class for where 3d transforms are supported, or not
if( $.support.cssTransform3d ){
$( "html" ).addClass( $.support.cssTransform3d ? "ui-supported-cssTransform3d" : "ui-unsupported-cssTransform3d" );
}
})( jQuery, this );