/**
 * CSS properties which accept numbers but are not in units of "px".
 */ export const isUnitlessNumber = { animationIterationCount : true , borderImageOutset : true , borderImageSlice : true , borderImageWidth : true , boxFlex : true , boxFlexGroup : true , boxOrdinalGroup : true , columnCount : true , columns : true , flex : true , flexGrow : true , flexPositive : true , flexShrink : true , flexNegative : true , flexOrder : true , gridArea : true , gridRow : true , gridRowEnd : true , gridRowSpan : true , gridRowStart : true , gridColumn : true , gridColumnEnd : true , gridColumnSpan : true , gridColumnStart : true , fontWeight : true , lineClamp : true , lineHeight : true , opacity : true , order : true , orphans : true , tabSize : true , widows : true , zIndex : true , zoom : true , fillOpacity : true , floodOpacity : true , stopOpacity : true , strokeDasharray : true , strokeDashoffset : true , strokeMiterlimit : true , strokeOpacity : true , strokeWidth : true , } ; param { string } prefix param { string } key return { string } function prefixKey ( prefix , key ) { return prefix + key . charAt ( 0 ) . toUpperCase ( ) + key . substring ( 1 ) ; } /**
 * Support style names that may come passed in prefixed by adding permutations
 * of vendor prefixes.
 */ const prefixes = [ 'Webkit' , 'ms' , 'Moz' , 'O' ] ; for ( const prop in isUnitlessNumber ) { prefixes . forEach ( function ( prefix ) { isUnitlessNumber [ prefixKey ( prefix , prop ) ] = isUnitlessNumber [ prop ] ; } ) ; }