Skip to content

Commit 35b2c3c

Browse files
andruudAnders Hartvoll Ruud
and
Anders Hartvoll Ruud
authored
[css-mixins-1] Check default values against the parameter type (#12243)
Co-authored-by: Anders Hartvoll Ruud
1 parent 255b1f4 commit 35b2c3c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

css-mixins-1/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,17 @@ and optionally a default value.
201201
<>
202202
}
203203
204-
<> = <> <>? [ : <<declaration-value>> ]?
204+
<> = <> <>? [ : <<default-value>> ]?
205205
<> = <> | <>
206+
<> = <>
206207
<type()> = type( <> )
207208
208209

210+
If a [=default value=] and a [=parameter type=] are both provided,
211+
then the [=default value=] must [=CSS/parse=] successfully
212+
according to that [=parameter type=]'s syntax.
213+
Otherwise, the ''@function'' rule is invalid.
214+
209215

210216
The Function Preamble
211217

0 commit comments

Comments
 (0)