]> source.dussan.org Git - jquery.git/commitdiff
Css: change boxSizingReliable in IE<9.
authorMichał Gołębiowski <m.goleb@gmail.com>
Sun, 26 Jan 2014 01:55:57 +0000 (02:55 +0100)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 21 Mar 2014 12:30:41 +0000 (08:30 -0400)
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
test/unit/support.js

index 1078c0905f4987fd193eb7429d70b5121b560cc8..4a8fc87ac1efe0af9d3702c3a1129d0e26c0f61e 100644 (file)
@@ -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 =
index eae4c2025d99246b3dfea7e76daf2ca672108f7f..c1f9d9bb967881dd4dd2ba4752839a254d51a7ea 100644 (file)
@@ -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,