[csswg-drafts] [css-variables] Handling of revert keyword in custom property

justinmichaud-apple has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-variables] Handling of revert keyword in custom property ==
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!

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3179 using your GitHub account

Received on Thursday, 27 September 2018 21:16:11 UTC