[csswg-drafts] [css-values-5] Make the type() function optional in attr() (#11938)

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

== [css-values-5] Make the type() function optional in attr() ==
Spec: https://drafts.csswg.org/css-values-5/#attr-notation

Could we allow omitting the `type()` function when the attribute type can be described by a single `<syntax-component>`? Then we could write `attr(max <number>)`, for example.

This would be consistent with the CSS `@function` parameters and return types (https://drafts.csswg.org/css-mixins/#function-rule).

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


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

Received on Friday, 14 March 2025 19:37:33 UTC