From 546da2dc0dcc2e6e1918028229368a892781ba59 Mon Sep 17 00:00:00 2001 From: Josh Kruder Date: Wed, 22 Jul 2015 22:31:38 -0400 Subject: [PATCH] Fix false CSS property. Modernizr.prefixed returns false in some cases; updated auto-prefix to use key instead of false. --- src/styles/auto-prefix.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/styles/auto-prefix.js b/src/styles/auto-prefix.js index 333b69a0197a48..1ba7ebb971f998 100644 --- a/src/styles/auto-prefix.js +++ b/src/styles/auto-prefix.js @@ -17,7 +17,15 @@ module.exports = { }, single(key) { - return isBrowser ? Modernizr.prefixed(key) : key; + if (isBrowser) { + // Windows 7 Firefox has an issue with the implementation of Modernizr.prefixed + // and is capturing 'false' as the CSS property name instead of the non-prefixed version. + let prefKey = Modernizr.prefixed(key); + return prefKey === false ? key : prefKey; + } + else { + return key; + } }, singleHyphened(key) {