[fix] backgroundClip prefixing when value is 'text'

Temporary work-around for a bug in inline-style-prefixer.

Fix #1014
This commit is contained in:
Nicolas Gallagher
2018-07-05 11:46:49 -07:00
parent 96ec805f59
commit 4151b47005

View File

@@ -185,6 +185,16 @@ const createReducer = (style, styleProps) => {
break;
}
// TODO: remove once this issue is fixed
// https://github.com/rofrischmann/inline-style-prefixer/issues/159
case 'backgroundClip': {
if (value === 'text') {
resolvedStyle.backgroundClip = value;
resolvedStyle.WebkitBackgroundClip = value;
}
break;
}
case 'display': {
resolvedStyle.display = value;
// A flex container in React Native has these defaults which should be