Skip to content

fix(css‑env): Fix env() function syntax definition - #3475

Closed
ExE-Boss wants to merge 1 commit into
w3c:masterfrom
EB-Forks:css-env-1/fix-env-function-syntax-definition
Closed

fix(css‑env): Fix env() function syntax definition#3475
ExE-Boss wants to merge 1 commit into
w3c:masterfrom
EB-Forks:css-env-1/fix-env-function-syntax-definition

Conversation

@ExE-Boss

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

astearns commented Jan 4, 2019

Copy link
Copy Markdown
Member

(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