From 9f9e204bba41b7a9cde5ba7e065d817ef8b18c41 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 --- 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 457034662..f0cd47769 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -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(); -- 2.39.5