Re: [csswg-drafts] Short property typization (#7523)

Somewhat related regarding multiple declarations: https://github.com/w3c/css-houdini-drafts/issues/1058

I strongly agree with @chriskirknielsen that if such a shorthand is introduced, it still needs to be based on the `@property` rule. Without that info it is unclear what's defined by that rule.

Regarding the rest of the syntax, I think the colon isn't necessary. Though there's an issue with the comma used to separate the descriptors or multiple property declarations because that's already allowed in the initial value syntax. Generally speaking, any tokens that can be part of a [`<declaration-value>`](https://drafts.css-houdini.org/css-properties-values-api/#initial-value-descriptor) are allowed.
So, either a separator _not_ allowed in `<declaration-value>` would need to be used or the shorthand would have to be restricted to `@property <custom-property-name> <custom-property-syntax> <custom-property-initial-value>;`.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-1192383301 using your GitHub account


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

Received on Friday, 22 July 2022 09:39:52 UTC