- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 Apr 2020 21:32:54 +0000
- To: public-css-archive@w3.org
> If we make this change, could we extend it to all comma-separated lists Maybe for all functions, but the `,;` looks a bit odd for me in ```css background-image: url("image.png"),; ``` Though maybe some people would like this style in order to avoid touching the previous line when inserting some item at the end: ```css background-image: url("image1.png"), url("image2.png"), ; ``` Anyways, doing this for all [`#`](https://drafts.csswg.org/css-values/#mult-comma) can have some strange implications for more general syntaxes. For example, the syntax of [`background`](https://drafts.csswg.org/css-backgrounds/#background) is `<bg-layer># , <final-bg-layer>`. So if we just allow a trailing comma after `<bg-layer>#`, then this would still be invalid: ```css background: url("image.png"), yellow, ; ``` but this would be valid: ```css background: url("image.png"),, yellow; ``` So instead of tying this to `#` lists, maybe the rule should be that `)` and `;` can be preceded by an optional comma or something like that. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4968#issuecomment-617425824 using your GitHub account
Received on Tuesday, 21 April 2020 21:32:56 UTC