aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2017-07-18 15:40:41 -0400
committerGitHub <noreply@github.com>2017-07-18 15:40:41 -0400
commit20cdf4e7de60f515a7acf6c70228c52668301d9b (patch)
treeb4629ff31128571e1eff1479901577152062256d /src/css.js
parent3fcddd6e72e7e318c0b062e391d60867732318ae (diff)
downloadjquery-20cdf4e7de60f515a7acf6c70228c52668301d9b.tar.gz
jquery-20cdf4e7de60f515a7acf6c70228c52668301d9b.zip
Support: Properly check for IE9 absolute scrollbox mishandling
Ref gh-3589 Fixes gh-3699 Fixes gh-3730 Closes gh-3729
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 79e06319c..87bf2481d 100644
--- a/src/css.js
+++ b/src/css.js
@@ -378,7 +378,7 @@ jQuery.each( [ "height", "width" ], function( i, dimension ) {
// Account for unreliable border-box dimensions by comparing offset* to computed and
// faking a content-box to get border and padding (gh-3699)
- if ( isBorderBox && !support.borderBoxReliable() ) {
+ if ( isBorderBox && support.scrollboxSize() === styles.position ) {
subtract -= Math.ceil(
elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
parseFloat( styles[ dimension ] ) -