@@ -1133,7 +1133,7 @@ in place of the ''@apply'' rule itself.
11331133Its grammar is:
11341134
11351135<pre class="prod">
1136- <<@apply>> = @apply <<dashed-function>> [ { <<declaration-list>> } ]?;
1136+ <<@apply>> = @apply [ <<dashed-ident>> | <<dashed- function>> ] [ { <<declaration-list>> } ]?;
11371137</pre>
11381138
11391139The ''@apply'' rule is only valid
@@ -1148,16 +1148,19 @@ adjust which properties and rules are active in a stylesheet
11481148before styles are applied.)
11491149
11501150The ''@apply'' rule applies the [=mixin=]
1151- named by the <<dashed-function>> 's name.
1151+ named by the <<dashed-ident>> or the <<dashed- function>> 's name.
11521152If no such [=mixin=] exists,
11531153the ''@apply'' does nothing.
11541154
1155- The arguments passed to the <<dashed-function>>
1155+ If passed a <<dashed-function>> ,
1156+ the arguments passed to the <<dashed-function>>
11561157are mapped to the [=mixin's=] arguments;
11571158if more arguments are passed than the length of the [=mixin's=] argument list,
11581159the ''@apply'' application does nothing.
11591160(Passing too few arguments is fine;
11601161the missing arguments take their default values instead.)
1162+ A <<dashed-ident>> passes no arguments.
1163+ (That is, ''@apply --foo;'' is identical to ''@apply --foo();'' .)
11611164
11621165If the [=mixin=] declares a ''@contents'' parameter,
11631166and the ''@apply'' rule has a <<declaration-list>> block,
0 commit comments