From d047073d2bc4f507ed98c157739b1e3d0417b3f6 Mon Sep 17 00:00:00 2001 From: Joelle Fleurantin Date: Sun, 18 Oct 2015 12:45:41 -0400 Subject: [PATCH] Offset: allow small differences in offset.top Fixes gh-2590 (cherry picked from commit 9f9e204bba41b7a9cde5ba7e065d817ef8b18c41) --- test/unit/offset.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/offset.js b/test/unit/offset.js index 76b2e897e..25f747b49 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -566,7 +566,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(); -- 2.39.5