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

>   - `<custom-property-name>` may be preferable to `<dashed-ident>` to avoid confusing values like `margin: 2-- 1px`

Sure, that's correct. The name has to be a custom property name anyway, since it's *referencing* a custom property.

>   - whitespaces probably need to be disallowed between `<dimension>` and the custom unit

Others have already said this - the custom unit is part of the `<dimension>` already. It's not a separate identifier.

>   - the spec should define that `/**/` must be inserted when serializing a specified value

Rather, it can't, because this isn't two tokens.

>   - the spec should define that a property including a custom unit is valid at parse time

Yes, it'll be defined as just a fancy way to have a variable reference, which gives this behavior by default.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7379#issuecomment-1717844842 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 15:20:02 UTC