From 942e313727d1ad886a1024c24fe4a9e8e2e0bb3e Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 20 Apr 2022 00:12:09 -0400 Subject: New upstream version 8.2.0. --- npm_assets/node_modules/jquery/src/css/support.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'npm_assets/node_modules/jquery/src/css') diff --git a/npm_assets/node_modules/jquery/src/css/support.js b/npm_assets/node_modules/jquery/src/css/support.js index fb2a1b2..3a9d25c 100644 --- a/npm_assets/node_modules/jquery/src/css/support.js +++ b/npm_assets/node_modules/jquery/src/css/support.js @@ -102,6 +102,10 @@ define( [ // set in CSS while `offset*` properties report correct values. // Behavior in IE 9 is more subtle than in newer versions & it passes // some versions of this test; make sure not to make it pass there! + // + // Support: Firefox 70+ + // Only Firefox includes border widths + // in computed dimensions. (gh-4529) reliableTrDimensions: function() { var table, tr, trChild, trStyle; if ( reliableTrDimensionsVal == null ) { @@ -109,17 +113,32 @@ define( [ tr = document.createElement( "tr" ); trChild = document.createElement( "div" ); - table.style.cssText = "position:absolute;left:-11111px"; + table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"; + tr.style.cssText = "border:1px solid"; + + // Support: Chrome 86+ + // Height set through cssText does not get applied. + // Computed height then comes back as 0. tr.style.height = "1px"; trChild.style.height = "9px"; + // Support: Android 8 Chrome 86+ + // In our bodyBackground.html iframe, + // display for all div elements is set to "inline", + // which causes a problem only in Android 8 Chrome 86. + // Ensuring the div is display: block + // gets around this issue. + trChild.style.display = "block"; + documentElement .appendChild( table ) .appendChild( tr ) .appendChild( trChild ); trStyle = window.getComputedStyle( tr ); - reliableTrDimensionsVal = parseInt( trStyle.height ) > 3; + reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) + + parseInt( trStyle.borderTopWidth, 10 ) + + parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight; documentElement.removeChild( table ); } -- cgit v1.2.3