Skip to content

Commit

Permalink
Fix false CSS property. Modernizr.prefixed returns false in some case…
Browse files Browse the repository at this point in the history
…s; updated auto-prefix to use key instead of false.
  • Loading branch information
jkruder committed Jul 23, 2015
1 parent 6f8cda4 commit 546da2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/styles/auto-prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 546da2d

Please sign in to comment.