(value: string | CoreTypes.LengthType)
| 237 | } |
| 238 | |
| 239 | function convertToPaddings(value: string | CoreTypes.LengthType): [CssProperty<Style, CoreTypes.LengthType>, CoreTypes.LengthType][] { |
| 240 | if (typeof value === 'string' && value !== 'auto') { |
| 241 | const thickness = parseShorthandPositioning(value); |
| 242 | |
| 243 | return [ |
| 244 | [paddingTopProperty, Length.parse(thickness.top)], |
| 245 | [paddingRightProperty, Length.parse(thickness.right)], |
| 246 | [paddingBottomProperty, Length.parse(thickness.bottom)], |
| 247 | [paddingLeftProperty, Length.parse(thickness.left)], |
| 248 | ]; |
| 249 | } else { |
| 250 | return [ |
| 251 | [paddingTopProperty, value], |
| 252 | [paddingRightProperty, value], |
| 253 | [paddingBottomProperty, value], |
| 254 | [paddingLeftProperty, value], |
| 255 | ]; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | function convertToTransform(value: string): [CssAnimationProperty<any, any>, any][] { |
| 260 | if (value === unsetValue) { |
nothing calls this directly
no test coverage detected