diff options
author | Timmy Willison <4timmywil@gmail.com> | 2021-01-11 11:56:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 11:56:08 -0500 |
commit | 3bbbc11111840d6fd5160db13f2c1a9acb05c4c4 (patch) | |
tree | bd7c6a2436fba968e00617478eea9c87dcad472e /test/unit/support.js | |
parent | 8969732518470a7f8e654d5bc5be0b0076cb0b87 (diff) | |
download | jquery-3bbbc11111840d6fd5160db13f2c1a9acb05c4c4.tar.gz jquery-3bbbc11111840d6fd5160db13f2c1a9acb05c4c4.zip |
Dimensions: Add offset prop fallback to FF for unreliable TR dimensions
Firefox incorrectly (or perhaps correctly) includes table borders in computed
dimensions, but they are the only one. Workaround this by testing for it and
falling back to offset properties
Fixes gh-4529
Closes gh-4808
Diffstat (limited to 'test/unit/support.js')
-rw-r--r-- | test/unit/support.js | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 008453085..f0755cbf6 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -58,11 +58,21 @@ testIframe( var expected, userAgent = window.navigator.userAgent, expectedMap = { - ie_11: {}, - chrome: {}, - safari: {}, - firefox: {}, - ios: {} + ie_11: { + "reliableTrDimensions": false + }, + chrome: { + "reliableTrDimensions": true + }, + safari: { + "reliableTrDimensions": true + }, + firefox: { + "reliableTrDimensions": false + }, + ios: { + "reliableTrDimensions": true + } }; if ( document.documentMode ) { |