From f99da4798c1a1e9964dc9b3ed43d44ba1a249f0c Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 22 Jun 2014 15:36:40 -0700 Subject: [PATCH] False-positive for csstransforms test Check for Android 2.x was wrong. Introduced by f62f1630a08acbdc3a3a74e3f77dbfb5899d7a71. --- feature-detects/css/transforms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature-detects/css/transforms.js b/feature-detects/css/transforms.js index 013bb178d1..84f312dace 100644 --- a/feature-detects/css/transforms.js +++ b/feature-detects/css/transforms.js @@ -10,7 +10,7 @@ define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { Modernizr.addTest('csstransforms', function() { // Android < 3.0 is buggy, so we sniff and blacklist // http://git.io/hHzL7w - return navigator.userAgent.indexOf('Android 2.') !== -1 && + return navigator.userAgent.indexOf('Android 2.') === -1 && testAllProps('transform', 'scale(1)', true); }); });