From 8b8f8f037482ca3fdbb6e7b2d199285ec991aa5d Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 5 Jan 2017 12:48:24 -0800 Subject: [PATCH] [fix] CSS properties that support unitless numbers --- src/apis/StyleSheet/normalizeValue.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/apis/StyleSheet/normalizeValue.js b/src/apis/StyleSheet/normalizeValue.js index cb4c2421..2a6d65bb 100644 --- a/src/apis/StyleSheet/normalizeValue.js +++ b/src/apis/StyleSheet/normalizeValue.js @@ -1,23 +1,36 @@ const unitlessNumbers = { + animationIterationCount: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, boxFlex: true, boxFlexGroup: true, + boxOrdinalGroup: true, columnCount: true, flex: true, flexGrow: true, + flexOrder: true, flexPositive: true, flexShrink: true, flexNegative: true, fontWeight: true, + gridRow: true, + gridColumn: true, lineClamp: true, opacity: true, order: true, orphans: true, + tabSize: true, widows: true, zIndex: true, zoom: true, // SVG-related fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, strokeDashoffset: true, + strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true, // transform types