[fix] CSS properties that support unitless numbers

This commit is contained in:
Nicolas Gallagher
2017-01-05 12:48:24 -08:00
parent 8e94af34e1
commit 8b8f8f0374
+13
View File
@@ -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