(spec: GradientBorderSpec)
| 576 | } |
| 577 | |
| 578 | function buildGradientBorderPseudoStyle(spec: GradientBorderSpec): Record<string, string> { |
| 579 | return { |
| 580 | content: '""', |
| 581 | position: 'absolute', |
| 582 | inset: spec.inset, |
| 583 | padding: spec.borderWidth, |
| 584 | 'border-radius': 'inherit', |
| 585 | background: spec.gradient, |
| 586 | 'pointer-events': 'none', |
| 587 | mask: RING_MASK, |
| 588 | 'mask-composite': 'exclude' |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | function formatJsObjectKey(key: string): string { |
| 593 | if (JS_IDENTIFIER_RE.test(key)) { |