Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 7f02aee

Browse files
oleersoyMoOx
authored andcommitted
Updated resolveValue comment (#65)
1 parent 317d738 commit 7f02aee

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

index.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@ var VAR_FUNC_IDENTIFIER = "var"
1515
var RE_VAR = /([\w-]+)(?:\s*,\s*)?\s*(.*)?/
1616

1717
/**
18-
* Resolve CSS variables in a value
18+
* Resolve CSS variables.
1919
*
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.
2322
*
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
2824
* @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
3027
* @return {String} A property value with all CSS variables substituted.
3128
*/
3229

0 commit comments

Comments
 (0)