Skip to content

Commit

Permalink
Merge pull request #1248 from jkruder/fix-false-css-property
Browse files Browse the repository at this point in the history
Fix false CSS property value
  • Loading branch information
Hai Nguyen committed Jul 27, 2015
2 parents 6f06ab7 + 546da2d commit 21ead0b
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 21ead0b

Please sign in to comment.