Skip to content

Conversation

@ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Jan 1, 2019

https://drafts.csswg.org/css-env-1/#env-function

The current specification would require prop: env(safe-area-inset-top,) to be valid and prop: env(safe-area-inset-top) to be invalid, but as we all know, it’s the other way around, so the spec is incorrect.

See also:

@tabatkins
Copy link
Member

No, commas are implicitly omittable if they're not separating anything. (This makes some grammars far easier to write, and simplifies the look of even simple grammars like these.)

@tabatkins tabatkins closed this Jan 4, 2019
@astearns
Copy link
Member

astearns commented Jan 4, 2019

(and they must be omitted in some cases listed in Tab's link, so your first example is explicitly not valid)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants