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/dimensions.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/dimensions.js')
-rw-r--r-- | test/unit/dimensions.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 280a54ebc..a44857910 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -627,13 +627,7 @@ QUnit.test( "width/height on an inline element with percentage dimensions (gh-36 } ); -// Support: Firefox 70+ -// Firefox 70 & newer fail this test but the issue there is more profound - Firefox doesn't -// subtract borders from table row computed widths. -// See https://github.com/jquery/jquery/issues/4529 -// See https://bugzilla.mozilla.org/show_bug.cgi?id=1590837 -// See https://github.com/w3c/csswg-drafts/issues/4444 -QUnit[ /firefox/i.test( navigator.userAgent ) ? "skip" : "test" ]( +QUnit.test( "width/height on a table row with phantom borders (gh-3698)", function( assert ) { assert.expect( 4 ); |