- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Jan 2025 11:20:26 +0000
- To: public-css-archive@w3.org
andruud has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-properties-values-api] Allow `<syntax>` production in `syntax` descriptor == You currently need to specify the custom property type as a string, e.g. `syntax: "<length> | auto"`, but now that [<syntax>](https://drafts.csswg.org/css-values-5/#typedef-syntax) exists, it would be nice to just do `syntax: <length> | auto`. We'd still allow string-wrapped types for legacy reasons, making the grammar `syntax: <syntax> | <string>`. Note that `<syntax>` is wrapped in `type()` in some other cases: - In [attr()](https://drafts.csswg.org/css-values-5/#attr-notation), the `<syntax>` part must always be wrapped in `type()`. - In [@function](https://drafts.csswg.org/css-mixins-1/#function-rule), the `<syntax>` part may appear unwrapped when it's a single [<syntax-component>](https://drafts.csswg.org/css-values-5/#typedef-syntax-component), otherwise it must be wrapped in `type()`. However, I think such a wrapper would be redundant for the `syntax` descriptor (e.g. `syntax: type(<length> | auto);`), so I suggest that we just stick to the bare/unwrapped `<syntax>`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11426 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 2 January 2025 11:20:27 UTC