Updated 3d transform test to accomodate FF10.

This commit is contained in:
Mat Marquis 2012-01-09 15:36:03 -05:00 committed by scottjehl
parent 733bda9a04
commit b52551d9a3
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
-webkit-backface-visibility:hidden;
-webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-backface-visibility:hidden;
-moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-transform:translateX(0);
}
.flip.out {

View file

@ -30,7 +30,7 @@ function propExists( prop ) {
// Thanks to Modernizr src for this test idea
function transform3dTest() {
var prop = "transform-3d";
return $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
return propExists( 'perspective' ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
}
// Test for dynamic-updating base tag support ( allows us to avoid href,src attr rewriting )