(value: string)
| 30 | } |
| 31 | |
| 32 | function resolveCSSVariable(value: string): string { |
| 33 | if (!value.startsWith('var(')) return value; |
| 34 | |
| 35 | const varName = value.match(/var\((--[^,)]+)/)?.[1]; |
| 36 | if (!varName) return value; |
| 37 | |
| 38 | const resolved = getComputedStyles().getPropertyValue(varName).trim(); |
| 39 | return resolved || value; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Get bounds for all content or a specific workflow group |
no test coverage detected