Re: [csswg-drafts] [css-transforms-1] Simplify transform function syntaxes (#4054)

> Isn’t it possible to write `translate(5,)` after the change now?

https://www.w3.org/TR/css-values-4/#component-types

> Commas specified in the grammar are implicitly omissible in some circumstances, when used to separate optional terms in the grammar. Within a top-level list in a property or other CSS value, or a function’s argument list, a comma specified in the grammar must be omitted if:

> all items following the comma have been omitted 

> `example( first? , second? , third? )`

> Given this grammar, ... and `example(first,)` are invalid. 

> If commas were not implicitly omittable, the grammar would have to be much more complicated to properly express the ways that the arguments can be omitted, greatly obscuring the simplicity of the feature.



-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/4054#issuecomment-506708294 using your GitHub account

Received on Friday, 28 June 2019 11:58:23 UTC