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-variables] Handling of revert keyword in custom property #3179

Closed
ghost opened this issue Sep 27, 2018 · 3 comments
Closed

[css-variables] Handling of revert keyword in custom property #3179

ghost opened this issue Sep 27, 2018 · 3 comments
Labels
css-variables-1 Current Work

Comments

@ghost
Copy link

ghost commented Sep 27, 2018

https://drafts.csswg.org/css-variables/

I am wondering how the 'revert' keyword should be handled in a custom property.

http://jsfiddle.net/0d6Lsfr2/3/

Currently, Safari sets the value of the custom property to the inherited value, or otherwise the initial value. Chrome and Firefox both set the value of the property to the text 'revert', as seen in the test case above.

What should be the correct behavior? It seems to me that revert should be treated in the same way as initial or inherit, which all three browsers handle in the same way. I can't find anything in the spec about this.

Thanks!

@FremyCompany
Copy link
Contributor

I don't think Chrome and Firefox support the revert value, do they?

@FremyCompany
Copy link
Contributor

FremyCompany commented Sep 27, 2018

(if they did, they should behave like Safari, except if the propery is specified not to inherit when registered)

@ghost
Copy link
Author

ghost commented Sep 27, 2018

I didn’t think of that. Everything makes sense then, thanks!

@ghost ghost closed this as completed Sep 27, 2018
@fantasai fantasai added the css-variables-1 Current Work label Jan 2, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-variables-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants