Re: [csswg-drafts] [css-values][css-images] Allow trailing comma in gradient functions (and probably others) (#4968)

> `url("image.png"),,yellow` would continue to be invalid due to the comma-elision rules

This doesn't seem clear to me. There is no omitted item between the commas, so the conditions in https://drafts.csswg.org/css-values/#comb-comma don't seem to apply.

> Something like: # allows an optional trailing comma

But why? Wouldn't allowing it at the end of a function or property value be enough?

Allowing a comma after `#` seems problematic if you have a grammar like `<ident># <ident>?`. If the value is `a, b, c`, does it mean that `a, b, c` is the `<ident>#` list and the final `<ident>?` is omitted? Or is `a, b` the `<ident>#` list, `,` the optional comma, and `c` the final `<ident>?`, i.e. a synonym of `a, b c`?

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

Received on Wednesday, 22 April 2020 11:30:26 UTC