MCPcopy Create free account
hub / github.com/angular/components / value

Method value

tools/stylelint/no-prefixes/needs-prefix.ts:67–81  ·  view source on GitHub ↗

Checks whether a CSS property value needs to be prefixed.

(prop: string, value: string)

Source from the content-addressed store, hash-verified

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}

Callers 1

ruleFnFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected