Re: [csswg-drafts] [css-variables-2] Custom units as simple variable desugaring (#7379)

Yeah, a `<dimension-token>` is a single token, not `<number-token> <ident-token>`.
So `width: 1 --fem` would be invalid just like `width: 1 px` or `width: 1/**/px`.

And the spec already says

> [A variable unit reference] has identical effects and restrictions to using [`var()`](https://drafts.csswg.org/css-variables-2/#funcdef-var)

> If a property contains one or more [`var()`](https://drafts.csswg.org/css-variables-2/#funcdef-var) functions, and those functions are syntactically valid, the entire property’s grammar must be assumed to be valid at parse time.

But I agree that the spec should refer to `<custom-property-name>` instead of `<dashed-indent>`.

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


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

Received on Wednesday, 13 September 2023 14:27:35 UTC