Skip to content

[css-mixins-1] 3.1.11 seems to make it impossible to have a return type #12256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
romainmenke opened this issue Jun 1, 2025 · 2 comments
Closed

Comments

@romainmenke
Copy link
Member

romainmenke commented Jun 1, 2025

3.1.6:

If custom function has a return type, create a custom property registration with the name "return" (violating the usual rules for what a registration’s name can be), a syntax of the return type, an inherit flag of "false", and no initial value. Add the registration to registrations.

3.1.11:

For each custom property registration of registrations, set its initial value to the corresponding value in argument styles, set its syntax to the universal syntax definition, and prepend a custom property to body rule with the property name and value in argument styles.

emphasis mine

This seems to erase any return type.

Should set its syntax to the universal syntax definition only apply to registrations that have corresponding argument styles, thus skipping return?

Or is set its syntax to the universal syntax definition intended to only be applied to those registrations that do not yet have any type?

@romainmenke romainmenke changed the title [css-mixins-1] 3.1.11 seems to make it impossible to have a return type [css-mixins-1] 3.1.11 seems to make it impossible to have a return type Jun 1, 2025
@andruud
Copy link
Member

andruud commented Jun 2, 2025

Thanks, I just overlooked this in 0c15df7.

@tabatkins
Copy link
Member

This was fixed in #12259.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants