This repository was archived by the owner on Feb 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,15 @@ var VAR_FUNC_IDENTIFIER = "var"
15
15
var RE_VAR = / ( [ \w - ] + ) (?: \s * , \s * ) ? \s * ( .* ) ? /
16
16
17
17
/**
18
- * Resolve CSS variables in a value
18
+ * Resolve CSS variables.
19
19
*
20
- * The second argument to a CSS variable function, if provided, is a fallback
21
- * value, which is used as the substitution value when the referenced variable
22
- * is invalid.
20
+ * The second argument to the CSS variable function, var(name[, fallback]),
21
+ * is used in the event that first argument cannot be resolved.
23
22
*
24
- * var(name[, fallback])
25
- *
26
- * @param {String } value A property value known to contain CSS variable
27
- * functions
23
+ * @param {String } value May contain the CSS variable function
28
24
* @param {Object } variables A map of variable names and values
29
- * @param {Object } source source object of the declaration containing the rule
25
+ * @param {Object } result The PostCSS result object
26
+ * @param {Object } decl The declaration containing the rule
30
27
* @return {String } A property value with all CSS variables substituted.
31
28
*/
32
29
You can’t perform that action at this time.
0 commit comments