MCPcopy
hub / github.com/postcss/autoprefixer / add

Method add

lib/value.js:64–78  ·  view source on GitHub ↗

* Save values with next prefixed token

(decl, prefix)

Source from the content-addressed store, hash-verified

62 * Save values with next prefixed token
63 */
64 add(decl, prefix) {
65 if (!decl._autoprefixerValues) {
66 decl._autoprefixerValues = {}
67 }
68 let value = decl._autoprefixerValues[prefix] || this.value(decl)
69
70 let before
71 do {
72 before = value
73 value = this.replace(value, prefix)
74 if (value === false) return
75 } while (value !== before)
76
77 decl._autoprefixerValues[prefix] = value
78 }
79
80 /**
81 * Is declaration need to be prefixed

Callers 2

OnceExitFunction · 0.45
processMethod · 0.45

Calls 2

valueMethod · 0.95
replaceMethod · 0.95

Tested by

no test coverage detected