Re: [csswg-drafts] [css-values-5][various] Better handling of arguments with commas (#9539)

Regarding the upgradeable commas.

Let's say a property has grammar `<length>#{2,}`. Then `mix(50%, 1px, 2px, 3px, 4px)` is not ambiguous (1st value must be `1px, 2px`, and 2nd value `3px, 4px`).

But later on we relax the grammar to allow `<length>#`. Then `mix(50%, 1px, 2px, 3px, 4px)` suddenly becomes ambiguous!

So even if not ambiguous, I would prefer to forbid values from having a top-level comma when the author uses `,` instead of `;`. With the exception of `var()` to avoid breaking things.

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


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

Received on Wednesday, 15 November 2023 16:21:39 UTC