MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / property

Function property

code/styling/public/app.js:23071–23289  ·  view source on GitHub ↗

* Property * * @param {string} input * @param {number} first * @param {number} second * @param {number} third * @return {string}

(input, first, second, third)

Source from the content-addressed store, hash-verified

23069 * @return {string}
23070 */
23071 function property (input, first, second, third) {
23072 var index = 0
23073 var out = input + ';'
23074 var hash = (first*2) + (second*3) + (third*4)
23075 var cache
23076
23077 // animation: a, n, i characters
23078 if (hash === 944) {
23079 return animation(out)
23080 } else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {
23081 return out
23082 }
23083
23084 // vendor prefix
23085 switch (hash) {
23086 // text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x
23087 case 1015: {
23088 // text-shadow/text-align/text-transform, a
23089 return out.charCodeAt(10) === 97 ? webkit + out + out : out
23090 }
23091 // filter/fill f, i, l
23092 case 951: {
23093 // filter, t
23094 return out.charCodeAt(3) === 116 ? webkit + out + out : out
23095 }
23096 // color/column, c, o, l
23097 case 963: {
23098 // column, n
23099 return out.charCodeAt(5) === 110 ? webkit + out + out : out
23100 }
23101 // box-decoration-break, b, o, x
23102 case 1009: {
23103 if (out.charCodeAt(4) !== 100) {
23104 break
23105 }
23106 }
23107 // mask, m, a, s
23108 // clip-path, c, l, i
23109 case 969:
23110 case 942: {
23111 return webkit + out + out
23112 }
23113 // appearance: a, p, p
23114 case 978: {
23115 return webkit + out + moz + out + out
23116 }
23117 // hyphens: h, y, p
23118 // user-select: u, s, e
23119 case 1019:
23120 case 983: {
23121 return webkit + out + moz + out + ms + out + out
23122 }
23123 // background/backface-visibility, b, a, c
23124 case 883: {
23125 // backface-visibility, -
23126 return out.charCodeAt(8) === DASH ? webkit + out + out : out
23127 }
23128 // flex: f, l, e

Callers 2

compileFunction · 0.85
supportsFunction · 0.85

Calls 2

animationFunction · 0.85
vendorFunction · 0.85

Tested by

no test coverage detected