Skip to content

Commit e82303f

Browse files
kbabbitttabatkins
authored andcommitted
Tweak prose to account for ident-token
1 parent 1c83f3a commit e82303f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

css-mixins-1/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,8 @@ and consists of a name,
950950
a list of [=mixin parameters=],
951951
and a [=mixin body=].
952952
(Identical to ''@function'',
953-
save that it lacks a [=custom function/return type=].)
953+
save that it lacks a [=custom function/return type=],
954+
and that the parameter list and enclosing parentheses are optional.)
954955

955956
<pre class="prod def">
956957
<<@mixin>> = @mixin [<<function-token>> <<function-parameter>>#? ) | <<ident-token>> ]
@@ -974,16 +975,19 @@ it is invalid within the body of a [=style rule=].
974975
<h4 id=mixin-prelude>
975976
The Mixin Prelude</h4>
976977

977-
The <<function-token>> production
978+
The <<function-token>> or <<ident-token>> production
978979
must start with two dashes (U+002D HYPHEN-MINUS),
979980
similar to <<dashed-ident>>,
980981
or else the definition is invalid.
981982

982-
The name of the resulting [=mixin=] is given by the name of the <<function-token>>.
983+
The name of the resulting [=mixin=] is given by the name of the <<function-token>> or <<ident-token>>.
983984
The optional [=mixin parameters=]
984985
are given by the <<function-parameter>> values
985986
(defaulting to an empty set).
986987

988+
If an <<ident-token>> is used,
989+
it is equivalent to a <<function-token>> followed by an empty parameter list.
990+
987991
The name of a ''@mixin'' rule is a [=tree-scoped name=].
988992
If more than one ''@mixin'' exists for a given name,
989993
then the rule in the stronger cascade layer wins,

0 commit comments

Comments
 (0)