Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-env-1] defining variables #2629

Open
ghost opened this issue Apr 30, 2018 · 1 comment
Open

[css-env-1] defining variables #2629

ghost opened this issue Apr 30, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 30, 2018

This is a follow up to: https://drafts.csswg.org/css-env-1/#issue-ed0904e4

The current Safari implementation does not have a way to define variables. A noticeable difference from var is the missing double dash at the beginning of variable names e.g. env(safe-area-inset-let). Maybe we could prefix developer defined variables with the double dash and UA defined variables should not have the double dash.

This would make it easier to differentiate between the two types of variables, would stop the developer overriding UA variables and ensure consistency with what has already been shipped.

@tabatkins
Copy link
Member

Yeah, that's the intent - author-defined ones would be --foo, so they live in a separate namespace from UA-defined ones, and we don't have to worry about clashes.

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

No branches or pull requests

1 participant