mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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:
parent
98b5275c12
commit
10d7d5ce9d
@ -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
|
|||||||
"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,
|
||||||
|
Loading…
Reference in New Issue
Block a user