Skip to content

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

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions