(prop: string)
| 173 | let _CACHED_BODY: {style: any} | null = null; |
| 174 | let _IS_WEBKIT = false; |
| 175 | export function validateStyleProperty(prop: string): boolean { |
| 176 | if (!_CACHED_BODY) { |
| 177 | _CACHED_BODY = getBodyNode() || {}; |
| 178 | _IS_WEBKIT = _CACHED_BODY!.style ? 'WebkitAppearance' in _CACHED_BODY!.style : false; |
| 179 | } |
| 180 | |
| 181 | let result = true; |
| 182 | if (_CACHED_BODY!.style && !containsVendorPrefix(prop)) { |
| 183 | result = prop in _CACHED_BODY!.style; |
| 184 | if (!result && _IS_WEBKIT) { |
| 185 | const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1); |
| 186 | result = camelProp in _CACHED_BODY!.style; |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | return result; |
| 191 | } |
| 192 | |
| 193 | export function validateWebAnimatableStyleProperty(prop: string): boolean { |
| 194 | return ANIMATABLE_PROP_SET.has(prop); |
no test coverage detected
searching dependent graphs…