@@ -12,6 +12,7 @@ jQuery.support = (function( support ) {
1212
1313 input . type = "checkbox" ;
1414
15+ // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
1516 // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
1617 support . checkOn = input . value !== "" ;
1718
@@ -38,7 +39,7 @@ jQuery.support = (function( support ) {
3839 support . optDisabled = ! opt . disabled ;
3940
4041 // Check if an input maintains its value after becoming a radio
41- // Support: IE9, IE10, Opera
42+ // Support: IE9, IE10
4243 input = document . createElement ( "input" ) ;
4344 input . value = "t" ;
4445 input . type = "radio" ;
@@ -50,10 +51,11 @@ jQuery.support = (function( support ) {
5051
5152 fragment . appendChild ( input ) ;
5253
54+ // Support: Safari 5.1, Android 4.x, Android 2.3
5355 // old WebKit doesn't clone checked state correctly in fragments
5456 support . checkClone = fragment . cloneNode ( true ) . cloneNode ( true ) . lastChild . checked ;
5557
56- // Support: Firefox 17+
58+ // Support: Firefox, Chrome, Safari
5759 // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
5860 support . focusinBubbles = "onfocusin" in window ;
5961
@@ -64,7 +66,8 @@ jQuery.support = (function( support ) {
6466 // Run tests that need a body at doc ready
6567 jQuery ( function ( ) {
6668 var container , marginDiv ,
67- divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;" ,
69+ // Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
70+ divReset = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box" ,
6871 body = document . getElementsByTagName ( "body" ) [ 0 ] ;
6972
7073 if ( ! body ) {
@@ -78,7 +81,8 @@ jQuery.support = (function( support ) {
7881 // Check box-sizing and margin behavior.
7982 body . appendChild ( container ) . appendChild ( div ) ;
8083 div . innerHTML = "" ;
81- div . style . cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;" ;
84+ // Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
85+ div . style . cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%" ;
8286
8387 // Workaround failing boxSizing test due to offsetWidth returning wrong value
8488 // with some non-1 values of body zoom, ticket #13543
@@ -91,9 +95,9 @@ jQuery.support = (function( support ) {
9195 support . pixelPosition = ( window . getComputedStyle ( div , null ) || { } ) . top !== "1%" ;
9296 support . boxSizingReliable = ( window . getComputedStyle ( div , null ) || { width : "4px" } ) . width === "4px" ;
9397
98+ // Support: Android 2.3
9499 // Check if div with explicit width and no margin-right incorrectly
95100 // gets computed margin-right based on width of container. (#3333)
96- // Fails in WebKit before Feb 2011 nightlies
97101 // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
98102 marginDiv = div . appendChild ( document . createElement ( "div" ) ) ;
99103 marginDiv . style . cssText = div . style . cssText = divReset ;
0 commit comments