Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions css-mixins-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ Its syntax is:
--*( <<declaration-value>># )
</pre>

Issue: Mention semicolon upgrades.

A <<dashed-function>> can only be used where ''var()'' is allowed.

If a property contains one or more <<dashed-function>>s,
Expand Down Expand Up @@ -331,7 +329,21 @@ Evaluating Custom Functions {#evaluating-custom-functions}
:: The |parameter|'s [=default value=].
</dl>
3. Return |value|.
</div>

<div class='example'>
A [=comma-containing productions|comma-containing value=]
may be passed as a single argument
by wrapping the value in curly braces, <code>{}</code>:

<pre class='lang-css'>
@function --max-plus-x(--list, --x) {
result: calc(max(var(--list)) + var(--x));
}
div {
width: --max-plus-x({ 1px, 7px, 2px }, 3px); /* 10px */
}
</pre>
</div>

<div algorithm>
Expand Down