Checks whether a CSS property value needs to be prefixed.
(prop: string, value: string)
| 65 | |
| 66 | /** Checks whether a CSS property value needs to be prefixed. */ |
| 67 | value(prop: string, value: string): boolean { |
| 68 | if (!prop || !value) { |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | const possiblePrefixableValues = |
| 73 | this._prefixes.add[prop.toLowerCase()] && this._prefixes.add[prop.toLowerCase()].values; |
| 74 | |
| 75 | return ( |
| 76 | !!possiblePrefixableValues && |
| 77 | possiblePrefixableValues.some((valueObj: any) => { |
| 78 | return value.toLowerCase() === valueObj.name; |
| 79 | }) |
| 80 | ); |
| 81 | } |
| 82 | } |