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
This commit is contained in:
Michał Gołębiowski 2014-01-26 02:55:57 +01:00 committed by Dave Methvin
parent 98b5275c12
commit 10d7d5ce9d
2 changed files with 6 additions and 7 deletions

View File

@ -94,11 +94,10 @@ define([
// Support: IE<9 // Support: IE<9
// Assume reasonable values in the absence of getComputedStyle // Assume reasonable values in the absence of getComputedStyle
pixelPositionVal = false; pixelPositionVal = boxSizingReliableVal = false;
reliableMarginRightVal = boxSizingReliableVal = true; reliableMarginRightVal = true;
// Support: node.js jsdom // Check for getComputedStyle so that this code is not run in IE<9.
// Don't assume that getComputedStyle is a property of the global object
if ( window.getComputedStyle ) { if ( window.getComputedStyle ) {
pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
boxSizingReliableVal = boxSizingReliableVal =

View File

@ -267,7 +267,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true, "ajax": true,
"appendChecked": true, "appendChecked": true,
"boxSizing": true, "boxSizing": true,
"boxSizingReliable": true, "boxSizingReliable": false,
"changeBubbles": false, "changeBubbles": false,
"checkClone": true, "checkClone": true,
"checkOn": true, "checkOn": true,
@ -304,7 +304,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true, "ajax": true,
"appendChecked": false, "appendChecked": false,
"boxSizing": false, "boxSizing": false,
"boxSizingReliable": true, "boxSizingReliable": false,
"changeBubbles": false, "changeBubbles": false,
"checkClone": true, "checkClone": true,
"checkOn": true, "checkOn": true,
@ -341,7 +341,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"ajax": true, "ajax": true,
"appendChecked": false, "appendChecked": false,
"boxSizing": false, "boxSizing": false,
"boxSizingReliable": true, "boxSizingReliable": false,
"changeBubbles": false, "changeBubbles": false,
"checkClone": true, "checkClone": true,
"checkOn": true, "checkOn": true,