File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,6 @@ Its syntax is:
225
225
--*( <<declaration-value>> # )
226
226
</pre>
227
227
228
- Issue: Mention semicolon upgrades.
229
-
230
228
A <<dashed-function>> can only be used where ''var()'' is allowed.
231
229
232
230
If a property contains one or more <<dashed-function>> s,
@@ -334,7 +332,21 @@ Evaluating Custom Functions {#evaluating-custom-functions}
334
332
:: The |parameter|'s [=default value=] .
335
333
</dl>
336
334
3. Return |value|.
335
+ </div>
337
336
337
+ <div class='example'>
338
+ A [=comma-containing productions|comma-containing value=]
339
+ may be passed as a single argument
340
+ by wrapping the value in curly braces, <code> {}</code> :
341
+
342
+ <pre class='lang-css'>
343
+ @function --max-plus-x(--list, --x) {
344
+ result: calc(max(var(--list)) + var(--x));
345
+ }
346
+ div {
347
+ width: --max-plus-x({ 1px, 7px, 2px }, 3px); /* 10px */
348
+ }
349
+ </pre>
338
350
</div>
339
351
340
352
<div algorithm>
You can’t perform that action at this time.
0 commit comments