From 965f7e2681220ee495824b288ae3898461019a52 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 4 Jan 2012 16:49:31 +0700 Subject: [PATCH] add class for 3d transform support --- js/jquery.mobile.transition.outin.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/jquery.mobile.transition.outin.js b/js/jquery.mobile.transition.outin.js index 6755973a..eddc7a7e 100644 --- a/js/jquery.mobile.transition.outin.js +++ b/js/jquery.mobile.transition.outin.js @@ -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 );