(varName: string)
| 66 | } |
| 67 | |
| 68 | public getCssVariable(varName: string): string | null { |
| 69 | const view = this.view; |
| 70 | if (!view) { |
| 71 | return null; |
| 72 | } |
| 73 | |
| 74 | if (this.unscopedCssVariables.has(varName)) { |
| 75 | return this.unscopedCssVariables.get(varName); |
| 76 | } |
| 77 | |
| 78 | if (this.scopedCssVariables.has(varName)) { |
| 79 | return this.scopedCssVariables.get(varName); |
| 80 | } |
| 81 | |
| 82 | if (!view.parent || !view.parent.style) { |
| 83 | return null; |
| 84 | } |
| 85 | |
| 86 | return view.parent.style.getCssVariable(varName); |
| 87 | } |
| 88 | |
| 89 | public resetScopedCssVariables() { |
| 90 | this.scopedCssVariables.clear(); |
no test coverage detected