Permalink
Browse files

Offset: allow small differences in offset.top

Fixes gh-2590
  • Loading branch information...
Queeniebee authored and dmethvin committed Oct 18, 2015
1 parent c577928 commit 9f9e204bba41b7a9cde5ba7e065d817ef8b18c41
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/offset.js
View
@@ -548,7 +548,9 @@ QUnit.test( "fractions (see #7730 and #7885)", function( assert ) {
result = div.offset();
assert.equal( result.top, expected.top, "Check top" );
// Support: Chrome 45-46+
// In recent Chrome these values differ a little.
assert.ok( Math.abs( result.top - expected.top ) < 0.25, "Check top within 0.25 of expected" );
assert.equal( result.left, expected.left, "Check left" );
div.remove();

0 comments on commit 9f9e204

Please sign in to comment.