[csswg-drafts] [css-mixins-1] Allow omitting function parens when parameters are omitted (#11685)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-mixins-1] Allow omitting function parens when parameters are omitted ==
Before fe94b66, `@function --name {}` was allowed. Now `@function --name() {}` is required.

Although it is not very important, I suppose, this syntax shorthand can be restored with `@function [<dashed-ident> | <function-token> <function-parameter>#? )] ...`.

However, I am not sure if the case-sensitivity of `<dashed-ident>` would be appropriate, since the function name is no longer case-sensitive after that same commit. I am not sure if this change is intentional, and that can be discussed in another issue.

Another nit: a remnant of `<function-name>` remains [here](https://github.com/w3c/csswg-drafts/blob/0b9c221edad2093d08e19e341a24441009603ae2/css-mixins-1/Overview.bs#L182).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11685 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 February 2025 09:41:31 UTC