Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 58e2a57

Browse files
committed
Ensures IE10 passes transition test; checks for unprefixed transitions to avoid qualifying Windows Phone.
1 parent 83a250f commit 58e2a57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.support.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function propExists( prop ) {
2020

2121
var fakeBody = $( "<body>" ).prependTo( "html" ),
2222
fbCSS = fakeBody[ 0 ].style,
23-
vendors = [ "Webkit", "Moz", "O", "ms", "" ],
23+
vendors = [ "Webkit", "Moz", "O" ],
2424
webos = "palmGetResource" in window, //only used to rule out scrollTop
2525
opera = window.opera,
2626
operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
@@ -62,6 +62,7 @@ function validStyle( prop, value, check_vend ) {
6262
// Thanks to Modernizr src for this test idea. `perspective` check is limited to Moz/unprefixed to prevent a false positive for 3D transforms on Android.
6363
function transform3dTest() {
6464
var prop = "transform-3d";
65+
console.log( validStyle( 'perspective', '10px', ['moz', ''] ) );
6566
return validStyle( 'perspective', '10px', ['moz', ''] ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
6667
}
6768

@@ -131,7 +132,7 @@ $.mobile.browser.ie = (function() {
131132

132133

133134
$.extend( $.support, {
134-
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear' ) && !opera,
135+
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear', [ "Webkit", "Moz", "O", "" ] ) && !opera,
135136
pushState: "pushState" in history && "replaceState" in history,
136137
mediaquery: $.mobile.media( "only all" ),
137138
cssPseudoElement: !!propExists( "content" ),

0 commit comments

Comments
 (0)