Skip to content

Commit a16b853

Browse files
authored
[css-env-1] Specify argument grammar for env() function (w3c#13642)
* Add argument grammar for env() function * Add missing explanation
1 parent 111e698 commit a16b853

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

css-env-1/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ use the ''env()'' function:
291291
<dfn function>env()</dfn> = env( <<custom-ident>> <<integer [0,∞]>>*, <<declaration-value>>? )
292292
</pre>
293293

294+
The ''env()'' function's [=argument grammar=] is:
295+
296+
<pre class=prod>
297+
<dfn><<env-args>></dfn> = env( <<declaration-value>>, <<declaration-value>>? )
298+
</pre>
299+
300+
Like ''var()'', a bare comma can be used with nothing following it,
301+
indicating that the second <<declaration-value>> was passed,
302+
just as an empty sequence.
303+
294304
The ''env()'' function can be used in place of any part of a value in any property on any element,
295305
or any part of a value in any descriptor on any [=at-rule=],
296306
and in several other places where CSS values are allowed.

0 commit comments

Comments
 (0)