Commit 10d7d5ce authored by Michał Gołębiowski's avatar Michał Gołębiowski Committed by Dave Methvin

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
parent 98b5275c
...@@ -94,11 +94,10 @@ define([ ...@@ -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 =
......
...@@ -267,7 +267,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec ...@@ -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 ...@@ -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 ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment