(value: string, start = 0)
| 230 | }), |
| 231 | }; |
| 232 | export function parseAngle(value: string, start = 0): Parsed<Angle> { |
| 233 | const angleResult = parseUnit(value, start); |
| 234 | if (angleResult) { |
| 235 | const { start, end, value } = angleResult; |
| 236 | |
| 237 | return (angleUnitsToRadMap[value.unit] || ((_, __, ___) => null))(start, end, value.value); |
| 238 | } |
| 239 | |
| 240 | return null; |
| 241 | } |
| 242 | |
| 243 | const backgroundSizeKeywords = new Set(['auto', 'contain', 'cover']); |
| 244 | export function parseBackgroundSize(value: string, start = 0, keyword = parseKeyword(value, start)): Parsed<BackgroundSize> { |
no test coverage detected