aboutsummaryrefslogtreecommitdiffstats
path: root/src/css
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-07-20 19:24:46 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-09-14 21:26:48 +0200
commitce3b4a62427c5a3a6669dcb8bf8e27a6287990d5 (patch)
tree2b50ed87d23df888f5fcc299d7108b23bdbc3e56 /src/css
parent64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b (diff)
downloadjquery-ce3b4a62427c5a3a6669dcb8bf8e27a6287990d5.tar.gz
jquery-ce3b4a62427c5a3a6669dcb8bf8e27a6287990d5.zip
Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 support
Drop non-critical workarounds for Android 2.3. Fixes gh-2483 Fixes gh-2505 Closes gh-2581
Diffstat (limited to 'src/css')
-rw-r--r--src/css/support.js33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/css/support.js b/src/css/support.js
index 0758fa8a4..08560b42a 100644
--- a/src/css/support.js
+++ b/src/css/support.js
@@ -29,10 +29,7 @@ define( [
// so they're executed at the same time to save the second computation.
function computeStyleTests() {
div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;box-sizing:border-box;" +
+ "box-sizing:border-box;" +
"display:block;position:absolute;" +
"margin:0;margin-top:1%;margin-right:50%;" +
"border:1px;padding:1px;" +
@@ -72,34 +69,6 @@ define( [
computeStyleTests();
}
return pixelMarginRightVal;
- },
- reliableMarginRight: function() {
-
- // Support: Android 2.3
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // This support function is only executed once so no memoizing is needed.
- var ret,
- marginDiv = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- marginDiv.style.cssText = div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;box-sizing:content-box;" +
- "display:block;margin:0;border:0;padding:0";
- marginDiv.style.marginRight = marginDiv.style.width = "0";
- div.style.width = "1px";
- documentElement.appendChild( container );
-
- ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
-
- documentElement.removeChild( container );
- div.removeChild( marginDiv );
-
- return ret;
}
} );
} )();