@@ -1133,7 +1133,7 @@ in place of the ''@apply'' rule itself.
1133
1133
Its grammar is:
1134
1134
1135
1135
<pre class="prod">
1136
- <<@apply>> = @apply <<dashed-function>> [ { <<declaration-list>> } ]?;
1136
+ <<@apply>> = @apply [ <<dashed-ident>> | <<dashed- function>> ] [ { <<declaration-list>> } ]?;
1137
1137
</pre>
1138
1138
1139
1139
The ''@apply'' rule is only valid
@@ -1148,16 +1148,19 @@ adjust which properties and rules are active in a stylesheet
1148
1148
before styles are applied.)
1149
1149
1150
1150
The ''@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.
1152
1152
If no such [=mixin=] exists,
1153
1153
the ''@apply'' does nothing.
1154
1154
1155
- The arguments passed to the <<dashed-function>>
1155
+ If passed a <<dashed-function>> ,
1156
+ the arguments passed to the <<dashed-function>>
1156
1157
are mapped to the [=mixin's=] arguments;
1157
1158
if more arguments are passed than the length of the [=mixin's=] argument list,
1158
1159
the ''@apply'' application does nothing.
1159
1160
(Passing too few arguments is fine;
1160
1161
the missing arguments take their default values instead.)
1162
+ A <<dashed-ident>> passes no arguments.
1163
+ (That is, ''@apply --foo;'' is identical to ''@apply --foo();'' .)
1161
1164
1162
1165
If the [=mixin=] declares a ''@contents'' parameter,
1163
1166
and the ''@apply'' rule has a <<declaration-list>> block,
0 commit comments