From 10d7d5ce9db60359694aa87d5856007af0ed4912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Sun, 26 Jan 2014 02:55:57 +0100 Subject: [PATCH] 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 --- src/css/support.js | 7 +++---- test/unit/support.js | 6 +++--- 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,