mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-27 08:13:46 +00:00
[fix] backgroundClip prefixing when value is 'text'
Temporary work-around for a bug in inline-style-prefixer. Fix #1014
This commit is contained in:
@@ -185,6 +185,16 @@ const createReducer = (style, styleProps) => {
|
|||||||
break;
|
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': {
|
case 'display': {
|
||||||
resolvedStyle.display = value;
|
resolvedStyle.display = value;
|
||||||
// A flex container in React Native has these defaults which should be
|
// A flex container in React Native has these defaults which should be
|
||||||
|
|||||||
Reference in New Issue
Block a user