aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-01-26 02:55:57 +0100
committerDave Methvin <dave.methvin@gmail.com>2014-03-21 08:30:41 -0400
commit10d7d5ce9db60359694aa87d5856007af0ed4912 (patch)
tree87ef9fe879c275acef61bc4b5d4b2e8c57b7bb26
parent98b5275c1225509f0cd66b3914353f1b72a6d0c2 (diff)
downloadjquery-10d7d5ce9db60359694aa87d5856007af0ed4912.tar.gz
jquery-10d7d5ce9db60359694aa87d5856007af0ed4912.zip
Css: change boxSizingReliable in IE<9.
Change boxSizingReliable test value to false in all IE versions. Modify support comments to argument getComputedStyle guards with oldIE support and not node.js which is not supported in 1.x. Closes gh-1498
-rw-r--r--src/css/support.js7
-rw-r--r--test/unit/support.js6
2 files changed, 6 insertions, 7 deletions
diff --git a/src/css/support.js b/src/css/support.js
index 1078c0905..4a8fc87ac 100644
--- a/src/css/support.js
+++ b/src/css/support.js
@@ -94,11 +94,10 @@ define([
// Support: IE<9
// Assume reasonable values in the absence of getComputedStyle
- pixelPositionVal = false;
- reliableMarginRightVal = boxSizingReliableVal = true;
+ pixelPositionVal = boxSizingReliableVal = false;
+ reliableMarginRightVal = true;
- // Support: node.js jsdom
- // Don't assume that getComputedStyle is a property of the global object
+ // Check for getComputedStyle so that this code is not run in IE<9.
if ( window.getComputedStyle ) {
pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
boxSizingReliableVal =
diff --git a/test/unit/support.js b/test/unit/support.js
index eae4c2025..c1f9d9bb9 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -267,7 +267,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true,
"appendChecked": true,
"boxSizing": true,
- "boxSizingReliable": true,
+ "boxSizingReliable": false,
"changeBubbles": false,
"checkClone": true,
"checkOn": true,
@@ -304,7 +304,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true,
"appendChecked": false,
"boxSizing": false,
- "boxSizingReliable": true,
+ "boxSizingReliable": false,
"changeBubbles": false,
"checkClone": true,
"checkOn": true,
@@ -341,7 +341,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true,
"appendChecked": false,
"boxSizing": false,
- "boxSizingReliable": true,
+ "boxSizingReliable": false,
"changeBubbles": false,
"checkClone": true,
"checkOn": true,