aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r--test/unit/offset.js4
1 files changed, 3 insertions, 1 deletions
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();