(align: Parsed<HorizontalAlign>, offset: Parsed<LengthPercentage>)
| 283 | }; |
| 284 | export function parseBackgroundPosition(text: string, start = 0, keyword = parseKeyword(text, start)): Parsed<BackgroundPosition> { |
| 285 | function formatH(align: Parsed<HorizontalAlign>, offset: Parsed<LengthPercentage>) { |
| 286 | if (align.value === 'center') { |
| 287 | return 'center'; |
| 288 | } |
| 289 | if (offset && offset.value.value !== 0) { |
| 290 | return { align: align.value, offset: offset.value }; |
| 291 | } |
| 292 | |
| 293 | return align.value; |
| 294 | } |
| 295 | function formatV(align: Parsed<VerticalAlign>, offset: Parsed<LengthPercentage>) { |
| 296 | if (align.value === 'center') { |
| 297 | return 'center'; |
no outgoing calls
no test coverage detected