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

>  if you have a grammar like `<ident># <ident>?`.

That's definitely something that needs to be defined explicitly. To use a real-world example: a `background: url(image.png), blue` is different from `background: url(image.png) blue` with respect to other background-list properties that override the declaration. For backwards compatibility, the comma always has to be meaningful in this case.

The optional comma should only be allowed either at the end of a value or at the end of a function parameter list.

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

Received on Wednesday, 22 April 2020 14:53:06 UTC