mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-28 00:32:17 +00:00
[fix] CSS properties that support unitless numbers
This commit is contained in:
@@ -1,23 +1,36 @@
|
|||||||
const unitlessNumbers = {
|
const unitlessNumbers = {
|
||||||
|
animationIterationCount: true,
|
||||||
|
borderImageOutset: true,
|
||||||
|
borderImageSlice: true,
|
||||||
|
borderImageWidth: true,
|
||||||
boxFlex: true,
|
boxFlex: true,
|
||||||
boxFlexGroup: true,
|
boxFlexGroup: true,
|
||||||
|
boxOrdinalGroup: true,
|
||||||
columnCount: true,
|
columnCount: true,
|
||||||
flex: true,
|
flex: true,
|
||||||
flexGrow: true,
|
flexGrow: true,
|
||||||
|
flexOrder: true,
|
||||||
flexPositive: true,
|
flexPositive: true,
|
||||||
flexShrink: true,
|
flexShrink: true,
|
||||||
flexNegative: true,
|
flexNegative: true,
|
||||||
fontWeight: true,
|
fontWeight: true,
|
||||||
|
gridRow: true,
|
||||||
|
gridColumn: true,
|
||||||
lineClamp: true,
|
lineClamp: true,
|
||||||
opacity: true,
|
opacity: true,
|
||||||
order: true,
|
order: true,
|
||||||
orphans: true,
|
orphans: true,
|
||||||
|
tabSize: true,
|
||||||
widows: true,
|
widows: true,
|
||||||
zIndex: true,
|
zIndex: true,
|
||||||
zoom: true,
|
zoom: true,
|
||||||
// SVG-related
|
// SVG-related
|
||||||
fillOpacity: true,
|
fillOpacity: true,
|
||||||
|
floodOpacity: true,
|
||||||
|
stopOpacity: true,
|
||||||
|
strokeDasharray: true,
|
||||||
strokeDashoffset: true,
|
strokeDashoffset: true,
|
||||||
|
strokeMiterlimit: true,
|
||||||
strokeOpacity: true,
|
strokeOpacity: true,
|
||||||
strokeWidth: true,
|
strokeWidth: true,
|
||||||
// transform types
|
// transform types
|
||||||
|
|||||||
Reference in New Issue
Block a user